入库单计划入库数量修改

This commit is contained in:
秦鸿展
2026-04-07 16:14:29 +08:00
parent cdb5d52b4d
commit a7e33200b4
@@ -155,6 +155,13 @@ public class StockInOrderDomainService {
if (stockInOrderPO == null){
throw new ServiceException("入库单信息不存在");
}
if (!CollectionUtils.isEmpty(stockInOrderDO.getMaterialDetailList())) {
stockInOrderDO.getMaterialDetailList().forEach(detail -> {
if (detail.getInboundQuantity() != null) {
detail.setQuantity(detail.getInboundQuantity());
}
});
}
//设置物料信息
setMaterialDetailInfo(stockInOrderDO);
//统计总物料种数