|
|
@@ -1857,8 +1857,8 @@ public class InventoryService extends BaseService<Inventory> {
|
|
|
InboundResponse inboundResponse = inboundMapper.selectMessageByOtherQuery(new InboundQuery().setIntoId(inOutRecordVOList.get(0).getBiznisId()));
|
|
|
Inbound inbound = new Inbound();
|
|
|
inbound.setIntoId(inboundResponse.getIntoId());
|
|
|
- inbound.setIntoQty(sumOutQty.abs());
|
|
|
- inbound.setIntoAmt(sumOutAmt.abs());
|
|
|
+ inbound.setIntoQty(sumOutQty);
|
|
|
+ inbound.setIntoAmt(sumOutAmt);
|
|
|
inboundMapper.update(inbound,
|
|
|
new UpdateWrapper<Inbound>().lambda()
|
|
|
.eq(Inbound::getIntoId, UUID.fromString(inbound.getIntoId()))
|
|
|
@@ -1875,13 +1875,13 @@ public class InventoryService extends BaseService<Inventory> {
|
|
|
//出库数量 todo 2024年7月12日09:47:55 这里在入库的时候会反写, 不要反写, 后续如果不需要再删除
|
|
|
// inboundItem.setOutQty(inOutRecordVO.getIntoQty().abs());
|
|
|
//已入库数量
|
|
|
- inboundItem.setIntoQty(inOutRecordVO.getIntoQty().abs());
|
|
|
+ inboundItem.setIntoQty(inOutRecordVO.getIntoQty());
|
|
|
//已入库金额
|
|
|
- inboundItem.setIntoAmt(inOutRecordVO.getIntoAmt().abs());
|
|
|
+ inboundItem.setIntoAmt(inOutRecordVO.getIntoAmt());
|
|
|
//成本单价
|
|
|
- inboundItem.setCostPrice(inOutRecordVO.getCostPrice().abs());
|
|
|
+ inboundItem.setCostPrice(inOutRecordVO.getCostPrice());
|
|
|
//成本金额
|
|
|
- inboundItem.setCostAmt(inOutRecordVO.getIntoAmt().abs());
|
|
|
+ inboundItem.setCostAmt(inOutRecordVO.getIntoAmt());
|
|
|
//库存id
|
|
|
inboundItem.setInvId(inOutRecordVO.getInvId());
|
|
|
//库存数量 = 已入库数量-出库数量 -已入库退货数量
|