符合出库数量调整

This commit is contained in:
zhou-hongcheng
2026-03-17 15:20:37 +08:00
parent 725f0538de
commit e76b2b18df
@@ -370,8 +370,8 @@ public class HandoverTaskOrderDomainService {
BigDecimal newNetWeight = oldNetWeight.subtract(checkNetWeight); BigDecimal newNetWeight = oldNetWeight.subtract(checkNetWeight);
materialInventoryPO.setInventoryQuantity(newInventoryQuantity); materialInventoryPO.setInventoryQuantity(newInventoryQuantity);
materialInventoryPO.setAllocationQuantity(newAllocationQuantity); materialInventoryPO.setAllocationQuantity(materialInventoryPO.getAllocationQuantity());
materialInventoryPO.setFreezeQuantity(newFreezeQuantity); materialInventoryPO.setFreezeQuantity(materialInventoryPO.getFreezeQuantity().subtract(outMaterialDetail.getCheckQuantity()) );
materialInventoryPO.setArea(newArea); materialInventoryPO.setArea(newArea);
materialInventoryPO.setVolume(newVolume); materialInventoryPO.setVolume(newVolume);
materialInventoryPO.setGrossWeight(newGrossWeight); materialInventoryPO.setGrossWeight(newGrossWeight);
@@ -423,7 +423,7 @@ public class HandoverTaskOrderDomainService {
inventoryAdjustmentRecord.setAllocationBeforeQuantity(oldAllocationQuantity); inventoryAdjustmentRecord.setAllocationBeforeQuantity(oldAllocationQuantity);
inventoryAdjustmentRecord.setAllocationAfterQuantity(oldAllocationQuantity); inventoryAdjustmentRecord.setAllocationAfterQuantity(oldAllocationQuantity);
inventoryAdjustmentRecord.setFreezeBeforeQuantity(oldFreezeQuantity); inventoryAdjustmentRecord.setFreezeBeforeQuantity(oldFreezeQuantity);
inventoryAdjustmentRecord.setFreezeAfterQuantity(newFreezeQuantity.subtract(outMaterialDetail.getOutboundQuantity()));//调整后 冻结-出库 inventoryAdjustmentRecord.setFreezeAfterQuantity(newFreezeQuantity.subtract(outMaterialDetail.getCheckQuantity()));//调整后 冻结-出库
inventoryAdjustmentRecord.setInventoryBeforeQuantity(oldInventoryQuantity); inventoryAdjustmentRecord.setInventoryBeforeQuantity(oldInventoryQuantity);
inventoryAdjustmentRecord.setInventoryAfterQuantity(newInventoryQuantity); inventoryAdjustmentRecord.setInventoryAfterQuantity(newInventoryQuantity);
// 调整前:库存数量(净重、毛重、体积、面积) // 调整前:库存数量(净重、毛重、体积、面积)