分配问题修改;

This commit is contained in:
王奎兴
2026-02-28 11:29:46 +08:00
parent 8bcb3aab37
commit 6ddea54bf8
@@ -866,8 +866,6 @@ public class StockOutOrderApplicationService {
returnOutMaterialDetailDOChild.setUniqueId(idGenerator.snowflakeId(SnowFlakeConstants.wmsId)); returnOutMaterialDetailDOChild.setUniqueId(idGenerator.snowflakeId(SnowFlakeConstants.wmsId));
returnOutMaterialDetailDOChild.setLevel(2); returnOutMaterialDetailDOChild.setLevel(2);
returnOutMaterialDetailDOChild.setParentUniqueId(outMaterialDetailPO.getUniqueId()); returnOutMaterialDetailDOChild.setParentUniqueId(outMaterialDetailPO.getUniqueId());
returnOutMaterialDetailDOChildList.add(returnOutMaterialDetailDOChild);
totalAllocationQuantity = totalAllocationQuantity.add(returnOutMaterialDetailDOChild.getAllocationQuantity());
BigDecimal allocationQuantity1 = returnOutMaterialDetailDOChild.getAllocationQuantity(); BigDecimal allocationQuantity1 = returnOutMaterialDetailDOChild.getAllocationQuantity();
BigDecimal alreadyAllocationQuantity1 = returnOutMaterialDetailDOChild.getAlreadyAllocationQuantity(); BigDecimal alreadyAllocationQuantity1 = returnOutMaterialDetailDOChild.getAlreadyAllocationQuantity();
if (allocationQuantity1 == null) { if (allocationQuantity1 == null) {
@@ -877,7 +875,9 @@ public class StockOutOrderApplicationService {
alreadyAllocationQuantity1 = BigDecimal.ZERO; alreadyAllocationQuantity1 = BigDecimal.ZERO;
} }
BigDecimal nowAllocationQuantity1 = allocationQuantity1.subtract(alreadyAllocationQuantity1); BigDecimal nowAllocationQuantity1 = allocationQuantity1.subtract(alreadyAllocationQuantity1);
totalNowAllocationQuantity = totalNowAllocationQuantity.add(nowAllocationQuantity1); returnOutMaterialDetailDOChild.setNowAllocationQuantity(nowAllocationQuantity1);
returnOutMaterialDetailDOChildList.add(returnOutMaterialDetailDOChild);
totalAllocationQuantity = totalAllocationQuantity.add(returnOutMaterialDetailDOChild.getAllocationQuantity());
} }
} }
//主单当分配作业数量和 //主单当分配作业数量和