剩余发货数量计算不准确问题解决
This commit is contained in:
parent
2ab727e6e2
commit
2a3ae07fb7
@ -452,6 +452,7 @@ public class ProjectOrderServiceImpl implements ProjectOrderService {
|
||||
deliverAmount = deliverOrderSubDOList.stream().mapToInt(DeliverOrderSubDO::getAmount).sum();
|
||||
}
|
||||
projectOrderSubDO.setDeliverAmount(deliverAmount);
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -922,7 +922,7 @@ const queryData = async (type: string, id?: number) => {
|
||||
sub.saleOrderSubId = sub.id
|
||||
sub.id = ''
|
||||
sub.saleOrderCode = sub.projectOrderCode
|
||||
sub.amounts = sub.amount - sub.deliverAmount
|
||||
sub.amount = sub.amount - sub.deliverAmount
|
||||
})
|
||||
formData.value.deliverOrderSubs = formData.value.deliverOrderSubs.concat(
|
||||
subList
|
||||
|
Loading…
Reference in New Issue
Block a user