diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/IShipmentContainerAdviceService.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/IShipmentContainerAdviceService.java index 698259c..21f22d6 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/IShipmentContainerAdviceService.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/IShipmentContainerAdviceService.java @@ -40,5 +40,8 @@ public interface IShipmentContainerAdviceService extends IService<ShipmentContai List<ShipmentContainerAdvice> getShipmentContainerAdviceListByShipmentContainerId(int shipmentContainerId); + /** + * 根据SN扣减库存 + */ Result reduceInventoryDetailBySn(String snList, String warehouseCode); } diff --git a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/impl/ShipmentContainerAdviceServiceImpl.java b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/impl/ShipmentContainerAdviceServiceImpl.java index 5c2fb74..dae6aa8 100644 --- a/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/impl/ShipmentContainerAdviceServiceImpl.java +++ b/huaheng-wms-core/src/main/java/org/jeecg/modules/wms/shipment/shipmentContainerAdvice/service/impl/ShipmentContainerAdviceServiceImpl.java @@ -319,6 +319,7 @@ public class ShipmentContainerAdviceServiceImpl extends ServiceImpl<ShipmentCont inventoryTransaction.setLot(inventoryDetail.getLot()); inventoryTransaction.setProject(inventoryDetail.getProject()); inventoryTransaction.setQty(inventoryDetailQty); + inventoryTransaction.setSn(inventoryDetail.getSn()); inventoryTransaction.setShipmentQty(inventoryDetailQty); BigDecimal inventoryQty = inventoryDetailService.getInventorySumQty(inventoryDetail); inventoryTransaction.setInventoryQty(inventoryQty);