feat(生产入库单申请):提交时,把特殊库存标识字段,保存到z_document_detailed表

This commit is contained in:
leiqiaozhen 2025-01-21 14:08:12 +08:00
parent ae1828d291
commit e17f32f145

View File

@ -350,7 +350,6 @@ public class ZStoragRequestServiceImpl extends ServiceImpl<ZStoragRequestMapper,
String inventorySpecialMarkingFromInv = (inventory.getInventorySpecialMarking() == null) ? "" : inventory.getInventorySpecialMarking();
throw BusinessException.build(carrierNumberOrLotNumber + "托盘上" + inventory.getInventoryId() + "条码的[" + inventorySpecialMarkingFromInv + "]特殊库存标识与列表中条码的[" + inventorySpecialMarking + "]特殊库存标识不符,不允许扫描");
}
}
// 记录第一个条码的状态
@ -679,6 +678,8 @@ public class ZStoragRequestServiceImpl extends ServiceImpl<ZStoragRequestMapper,
documentDetailed.setApplicationsQuantity(new BigDecimal(StringUtils.isBlank(o.getQty()) ? "0" : o.getQty()));
documentDetailed.setSourceWarehouse(o.getSourceWarehouse());
documentDetailed.setTargetWarehouse(o.getTargetWarehouse());
// 设置特殊库存标识
documentDetailed.setInventorySpecialMarking(o.getInventorySpecialMarking());
documentDetailed.setCreateUser(SecurityUtils.getUserName());
documentDetailed.setUpdateUser(SecurityUtils.getUserName());
documentDetailed.setCreateDate(LocalDateTime.now());
@ -713,7 +714,7 @@ public class ZStoragRequestServiceImpl extends ServiceImpl<ZStoragRequestMapper,
documents_.add(document);
// 调用ERP交货单创建接口
documentService.sapDeliveryOrderCreation(site, documents , user , documents_);
// documentService.sapDeliveryOrderCreation(site, documents , user , documents_);
// 保存 单据主表
zDocumentService.save(documents_.get(0));
// 保存单据详细表