分配问题修改;
This commit is contained in:
-9
@@ -867,16 +867,7 @@ public class StockOutOrderApplicationService {
|
|||||||
returnOutMaterialDetailDOChild.setLevel(2);
|
returnOutMaterialDetailDOChild.setLevel(2);
|
||||||
returnOutMaterialDetailDOChild.setParentUniqueId(outMaterialDetailPO.getUniqueId());
|
returnOutMaterialDetailDOChild.setParentUniqueId(outMaterialDetailPO.getUniqueId());
|
||||||
BigDecimal allocationQuantity1 = returnOutMaterialDetailDOChild.getAllocationQuantity();
|
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.setAlreadyAllocationQuantity(allocationQuantity1);
|
||||||
returnOutMaterialDetailDOChild.setNowAllocationQuantity(nowAllocationQuantity1);
|
|
||||||
returnOutMaterialDetailDOChildList.add(returnOutMaterialDetailDOChild);
|
returnOutMaterialDetailDOChildList.add(returnOutMaterialDetailDOChild);
|
||||||
totalAllocationQuantity = totalAllocationQuantity.add(returnOutMaterialDetailDOChild.getAllocationQuantity());
|
totalAllocationQuantity = totalAllocationQuantity.add(returnOutMaterialDetailDOChild.getAllocationQuantity());
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user