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