自动化立体仓库 - WMS系统
zc
2024-09-03 b196900d48deefb0129e28df0a842fadc3d6bff1
src/main/java/com/zy/third/erp/task/ERPInOrOutService.java
@@ -57,7 +57,7 @@
        // 如果单据不存在则添加;如果单据存在,作业中无法修改,反之则修改单据
        if (!Cools.isEmpty(order)) {
            if (order.getSettle() > 1L) {
                throw new CoolException(inHedTB.getBillNo() + "正在出库,无法修改单据");
                throw new CoolException(inHedTB.getBillNo() + "正在入库,无法修改单据");
            }
            orderService.remove(order.getId());
        }
@@ -143,6 +143,7 @@
            if (!orderDetlService.insert(orderDetl)) {
                throw new CoolException("生成单据明细失败,请联系管理员");
            }
            log.info("入库单据成功详情,{}", orderDetl);
        }
        return true;
    }
@@ -244,6 +245,7 @@
            if (!orderDetlService.insert(orderDetl)) {
                throw new CoolException("生成单据明细失败,请联系管理员");
            }
            log.info("出库单据成功详情,{}", orderDetl);
        }
        return true;
    }