Bladeren bron

fix:物料申请,库存验证修改提示

SJ 11 maanden geleden
bovenliggende
commit
d0dde58a95

+ 1 - 1
jeecg-boot/jeecg-boot-module-system/src/main/java/org/jeecg/modules/activiti/listener/ListenerMaterialApply.java

@@ -60,7 +60,7 @@ public class ListenerMaterialApply implements TaskListener, ExecutionListener {
                 BigDecimal amount = new BigDecimal(detail.get("amount").toString());
                 BigDecimal subtract = amount.add(occupyDetails.getOrDefault(materialName, BigDecimal.ZERO)).subtract(inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO));
                 if (subtract.compareTo(BigDecimal.ZERO) > 0) {
-                    msg += materialName + " 现有库存:" + inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 单据占用:" + occupyDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 缺失:" + subtract +"   ";
+                    msg += materialName + " 现有库存:" + inventoryDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 单据占用:" + occupyDetails.getOrDefault(materialName, BigDecimal.ZERO) + " 需要补足:" + subtract +"   ";
                 }
             };
             if (StringUtils.isNotBlank(msg)) {