优化支出合同结算单提交校验插件

This commit is contained in:
xuhaihui 2025-11-17 16:34:04 +08:00
parent c575a7886e
commit 444808e26e
1 changed files with 4 additions and 4 deletions

View File

@ -23,9 +23,9 @@ public class OutContractValidatorSubOp extends AbstractOperationServicePlugIn {
super.onPreparePropertys(e); super.onPreparePropertys(e);
e.getFieldKeys().add("iseqsettle");//按设备费用结算单结算 e.getFieldKeys().add("iseqsettle");//按设备费用结算单结算
e.getFieldKeys().add("eqsettleentry");//设备费用结算分录 e.getFieldKeys().add("eqsettleentry");//设备费用结算分录
e.getFieldKeys().add("contract");//合同类型 /* e.getFieldKeys().add("contract");//合同类型
e.getFieldKeys().add("itementry");//支付项分录 e.getFieldKeys().add("itementry");//支付项分录
e.getFieldKeys().add("zcgj_processallocatentity");//工序分摊 e.getFieldKeys().add("zcgj_processallocatentity");//工序分摊*/
} }
@Override @Override
@ -45,7 +45,7 @@ public class OutContractValidatorSubOp extends AbstractOperationServicePlugIn {
if (isEqSettle && eqSettleEntryCollection.size() == 0) { if (isEqSettle && eqSettleEntryCollection.size() == 0) {
this.addFatalErrorMessage(extendedDataEntity, "设备维保类合同,按设备费用结算单结算为是,设备费用结算单明细必填!!"); this.addFatalErrorMessage(extendedDataEntity, "设备维保类合同,按设备费用结算单结算为是,设备费用结算单明细必填!!");
} }
DynamicObject contract = dataEntity.getDynamicObject("contract");//合同名称 /* DynamicObject contract = dataEntity.getDynamicObject("contract");//合同名称
if (contract != null) { if (contract != null) {
String priceType = contract.getString("zcgj_pricetype");//计价方式 String priceType = contract.getString("zcgj_pricetype");//计价方式
boolean priceTypeMatch = "zjbg".equals(priceType) || "bdlbdj".equals(priceType); boolean priceTypeMatch = "zjbg".equals(priceType) || "bdlbdj".equals(priceType);
@ -70,7 +70,7 @@ public class OutContractValidatorSubOp extends AbstractOperationServicePlugIn {
if (priceTypeMatch && contractTypeMatch && processAllocEmpty) { if (priceTypeMatch && contractTypeMatch && processAllocEmpty) {
this.addFatalErrorMessage(extendedDataEntity, "工序分摊必填!!"); this.addFatalErrorMessage(extendedDataEntity, "工序分摊必填!!");
} }
} }*/
} }
} }
} }