فهرست منبع

选矿BUG修复

ChenYang 1 سال پیش
والد
کامیت
31c9933bd0

BIN
doc/~$环境使用手册.docx


+ 4 - 0
warewms-ams/src/main/java/com/ruoyi/ams/xuankuang/service/WcsTaskSubService.java

@@ -379,6 +379,8 @@ public class WcsTaskSubService {
         for (InvLotLocId invLotLocId : invLotLocIds) {
             BigDecimal qty = invLotLocId.getQty();
             if (qty.compareTo(canQty) >= 0) {
+                list.get(0).setQtyAllocatedEach(qtyOrderedEach);
+                list.get(0).setQtyAllocated(qtyOrderedEach);
                 list.get(0).setQtyPicked(qtyOrderedEach);
                 int i = iWmsDocOrderDetailsService.updateWmsDocOrderDetails(list.get(0));
                 if (i > 0) {
@@ -389,6 +391,8 @@ public class WcsTaskSubService {
                     continue;
                 }
             } else if (qty.compareTo(canQty) < 0) {
+                list.get(0).setQtyAllocatedEach(allocatedEach.add(qty));
+                list.get(0).setQtyAllocated(allocatedEach.add(qty));
                 list.get(0).setQtyPicked(allocatedEach.add(qty));
                 int i = iWmsDocOrderDetailsService.updateWmsDocOrderDetails(list.get(0));
                 if (i > 0) {