Commit f334ce9eaf2836f5f1e48b03ee9d5ca10d0b4730
1 parent
143b785d
fix: 根据SN扣减库存,未将SN保存到交易记录
Showing
2 changed files
with
4 additions
and
0 deletions
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 | @@ -40,5 +40,8 @@ public interface IShipmentContainerAdviceService extends IService<ShipmentContai | ||
40 | 40 | ||
41 | List<ShipmentContainerAdvice> getShipmentContainerAdviceListByShipmentContainerId(int shipmentContainerId); | 41 | List<ShipmentContainerAdvice> getShipmentContainerAdviceListByShipmentContainerId(int shipmentContainerId); |
42 | 42 | ||
43 | + /** | ||
44 | + * 根据SN扣减库存 | ||
45 | + */ | ||
43 | Result reduceInventoryDetailBySn(String snList, String warehouseCode); | 46 | Result reduceInventoryDetailBySn(String snList, String warehouseCode); |
44 | } | 47 | } |
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 | @@ -319,6 +319,7 @@ public class ShipmentContainerAdviceServiceImpl extends ServiceImpl<ShipmentCont | ||
319 | inventoryTransaction.setLot(inventoryDetail.getLot()); | 319 | inventoryTransaction.setLot(inventoryDetail.getLot()); |
320 | inventoryTransaction.setProject(inventoryDetail.getProject()); | 320 | inventoryTransaction.setProject(inventoryDetail.getProject()); |
321 | inventoryTransaction.setQty(inventoryDetailQty); | 321 | inventoryTransaction.setQty(inventoryDetailQty); |
322 | + inventoryTransaction.setSn(inventoryDetail.getSn()); | ||
322 | inventoryTransaction.setShipmentQty(inventoryDetailQty); | 323 | inventoryTransaction.setShipmentQty(inventoryDetailQty); |
323 | BigDecimal inventoryQty = inventoryDetailService.getInventorySumQty(inventoryDetail); | 324 | BigDecimal inventoryQty = inventoryDetailService.getInventorySumQty(inventoryDetail); |
324 | inventoryTransaction.setInventoryQty(inventoryQty); | 325 | inventoryTransaction.setInventoryQty(inventoryQty); |