分配问题修改;

This commit is contained in:
王奎兴
2026-02-28 16:25:29 +08:00
parent 3875a92299
commit 6bde657310
@@ -867,16 +867,7 @@ public class StockOutOrderApplicationService {
returnOutMaterialDetailDOChild.setLevel(2);
returnOutMaterialDetailDOChild.setParentUniqueId(outMaterialDetailPO.getUniqueId());
BigDecimal allocationQuantity1 = returnOutMaterialDetailDOChild.getAllocationQuantity();
BigDecimal alreadyAllocationQuantity1 = returnOutMaterialDetailDOChild.getAlreadyAllocationQuantity();
if (allocationQuantity1 == null) {
allocationQuantity1 = BigDecimal.ZERO;
}
if (alreadyAllocationQuantity1 == null) {
alreadyAllocationQuantity1 = BigDecimal.ZERO;
}
BigDecimal nowAllocationQuantity1 = allocationQuantity1.subtract(alreadyAllocationQuantity1);
returnOutMaterialDetailDOChild.setAlreadyAllocationQuantity(allocationQuantity1);
returnOutMaterialDetailDOChild.setNowAllocationQuantity(nowAllocationQuantity1);
returnOutMaterialDetailDOChildList.add(returnOutMaterialDetailDOChild);
totalAllocationQuantity = totalAllocationQuantity.add(returnOutMaterialDetailDOChild.getAllocationQuantity());
}