|
|
@@ -439,6 +439,8 @@ public class InboundPurchaseService extends BaseService<Inbound> {
|
|
|
else {
|
|
|
//region 根据id查询 此条入库单的数据还未更改前的数据
|
|
|
InboundResponse inboundResponse = inboundMapper.selectById(inboundVO.getIntoId());
|
|
|
+ // 需要ReceivableId 周兴 2024-7-12 增加
|
|
|
+ inboundVO.setReceivableId(inboundResponse.getReceivableId());
|
|
|
BigDecimal sumQty = inboundVO.getItemList().stream().map(InboundItemVO::getIntoingQty).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(6, BigDecimal.ROUND_HALF_UP);
|
|
|
BigDecimal sumAmt = inboundVO.getItemList().stream().map(InboundItemVO::getIntoingAmt).reduce(BigDecimal.ZERO, BigDecimal::add).setScale(2, BigDecimal.ROUND_HALF_UP);
|
|
|
//endregion
|