Browse Source

出库维护库存品在库数量、维护出库数量

pull/19/head
汤建军 10 months ago
parent
commit
af3c42e8d7
  1. 3
      blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java

3
blade-service/logpm-distribution/src/main/java/com/logpm/distribution/service/impl/DistributionStockListServiceImpl.java

@ -372,7 +372,8 @@ public class DistributionStockListServiceImpl extends BaseServiceImpl<Distributi
distributionStockListInfo.setId(null); distributionStockListInfo.setId(null);
distributionUnpackingDetailsService.save(distributionUnpackingDetails); distributionUnpackingDetailsService.save(distributionUnpackingDetails);
//对原来的库存品进行数据维护 //对原来的库存品进行数据维护
one.setQuantityStock(one.getQuantityStock() - Integer.parseInt(distributionStockListDTO.getPackageNum())); one.setQuantityStock(one.getQuantityStock() - distributionStockListDTO.getUnpackingQuantity());
one.setOutboundQuantity(one.getOutboundQuantity() + distributionStockListDTO.getUnpackingQuantity());
this.updateById(one); this.updateById(one);
//添加拆包记录 //添加拆包记录
distributionUnpackingDetails.setStockArticleId(Optional.ofNullable(one.getStockArticleId()).orElse(null)); distributionUnpackingDetails.setStockArticleId(Optional.ofNullable(one.getStockArticleId()).orElse(null));

Loading…
Cancel
Save