备料计划中(计划出库-累计出库)为负数时生产订单不允许完工

This commit is contained in:
lihao 2025-10-21 18:49:26 +08:00
parent b265c73384
commit 042de4bb85
1 changed files with 1 additions and 1 deletions

View File

@ -78,7 +78,7 @@ public class ReWrite20ForOrderBP {
for(PraybillItemVO itemvo : itemvos) {
if (lbids.contains(itemvo.getPk_praybill_b())) {
if (itemvo.getNaccumulatenum().compareTo(itemvo.getNnum()) < 0 && ( null != itemvo.getAttributeValue("vbdef33") && itemvo.getNaccumulatenum().compareTo(new UFDouble((BigDecimal)itemvo.getAttributeValue("vbdef33"))) == 0)) {
if (itemvo.getNaccumulatenum().compareTo(itemvo.getNnum()) < 0 && ( null != itemvo.getAttributeValue("vbdef33") && itemvo.getNaccumulatenum().compareTo(new UFDouble(new UFDouble(String.valueOf(itemvo.getAttributeValue("vbdef33"))))) == 0)) {
itemvo.setStatus(1);
itemvo.setBrowclose(UFBoolean.FALSE);
} else {