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 | 40 | |
41 | 41 | List<ShipmentContainerAdvice> getShipmentContainerAdviceListByShipmentContainerId(int shipmentContainerId); |
42 | 42 | |
43 | + /** | |
44 | + * 根据SN扣减库存 | |
45 | + */ | |
43 | 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 | 319 | inventoryTransaction.setLot(inventoryDetail.getLot()); |
320 | 320 | inventoryTransaction.setProject(inventoryDetail.getProject()); |
321 | 321 | inventoryTransaction.setQty(inventoryDetailQty); |
322 | + inventoryTransaction.setSn(inventoryDetail.getSn()); | |
322 | 323 | inventoryTransaction.setShipmentQty(inventoryDetailQty); |
323 | 324 | BigDecimal inventoryQty = inventoryDetailService.getInventorySumQty(inventoryDetail); |
324 | 325 | inventoryTransaction.setInventoryQty(inventoryQty); |
... | ... |