优化入库单计算材料总金额字段逻辑

This commit is contained in:
xuhaihui 2025-10-15 16:22:14 +08:00
parent c6730121bb
commit 58825bcf40
1 changed files with 1 additions and 1 deletions

View File

@ -1109,7 +1109,7 @@ public class MaterialInBillEditPluginExt extends AbstractEcmaBillPlugin implemen
for (DynamicObject entryEntity : entryEntityCollection) { for (DynamicObject entryEntity : entryEntityCollection) {
BigDecimal notaxAmount = entryEntity.getBigDecimal("notaxamount");//金额 BigDecimal notaxAmount = entryEntity.getBigDecimal("notaxamount");//金额
if (notaxAmount != null) { if (notaxAmount != null) {
notaxAmount = notaxAmount.setScale(2, RoundingMode.HALF_UP); // notaxAmount = notaxAmount.setScale(2, RoundingMode.HALF_UP);
sum = sum.add(notaxAmount); sum = sum.add(notaxAmount);
} }
} }