合同提交校验合同清单金额与合同金额的差1.0

This commit is contained in:
ptt 2025-04-25 16:11:28 +08:00
parent d4f382ab19
commit 21114999c4
1 changed files with 1 additions and 1 deletions

View File

@ -79,7 +79,7 @@ public class ContractOPPlugin extends AbstractOperationServicePlugIn {
BigDecimal amount = dataEntity.getBigDecimal("amount");//合同金额 BigDecimal amount = dataEntity.getBigDecimal("amount");//合同金额
// 检查 qeug_amounts 是否大于 amount // 检查 qeug_amounts 是否大于 amount
if (isEntry&&qeug_amounts.add(qeug_taxtotalprices).setScale(2, RoundingMode.HALF_UP).compareTo(amount) < 0) { if (isEntry&&qeug_amounts.add(qeug_taxtotalprices).setScale(2, RoundingMode.HALF_UP).compareTo(amount) < 0) {
this.addErrorMessage(extendedDataEntity, "合同清单(定额)的金额之和不能大于合同金额"); this.addErrorMessage(extendedDataEntity, "合同清单(定额)与(非定额)的金额之和不能小于合同金额");
} }
// DynamicObjectCollection qeug_orderformentry1 = dataEntity.getDynamicObjectCollection("qeug_orderformentry"); // DynamicObjectCollection qeug_orderformentry1 = dataEntity.getDynamicObjectCollection("qeug_orderformentry");
// int qeug_orderformentry = qeug_orderformentry1==null?0:qeug_orderformentry1.size(); // int qeug_orderformentry = qeug_orderformentry1==null?0:qeug_orderformentry1.size();