Commit 4891ce55e79066cd85953d9ab37c6317013e8971

Authored by 肖超群
1 parent 64c0c195

生成入库任务时,如果是空托盘 那么不需要更新库存

huaheng-wms-core/src/main/java/org/jeecg/modules/wms/receipt/receiptContainerHeader/service/impl/ReceiptContainerHeaderServiceImpl.java
... ... @@ -199,9 +199,12 @@ public class ReceiptContainerHeaderServiceImpl extends ServiceImpl<ReceiptContai
199 199 throw new JeecgBootException("创建入库任务, 任务详情生成失败");
200 200 }
201 201 if (receiptContainerHeader.getTaskType() == QuantityConstant.TASK_TYPE_SUPPLEMENTRECEIPT) {
202   - success = inventoryHeaderService.updateInventoryContainerStatusByContainerCode(containerCode, warehouseCode);
203   - if (!success) {
204   - throw new JeecgBootException("创建入库任务, 更新库存头失败");
  202 + // 如果是空托盘,那么不需要更新库存
  203 + if (!containerFillStatus.equals(QuantityConstant.STATUS_CONTAINER_FILL_EMPTY)) {
  204 + success = inventoryHeaderService.updateInventoryContainerStatusByContainerCode(containerCode, warehouseCode);
  205 + if (!success) {
  206 + throw new JeecgBootException("创建入库任务, 更新库存头失败");
  207 + }
205 208 }
206 209 }
207 210 success = receiptContainerHeaderService.updateToPortAndStatus(receiptContainerHeader.getToPort(), QuantityConstant.RECEIPT_CONTAINER_TASK,
... ...