自动化立体仓库 - WMS系统
zwl
2 天以前 605be0c8702fc7bfe4f7fcdd397c9f0d40722b69
src/main/java/com/zy/common/web/WcsController.java
@@ -125,6 +125,15 @@
            }
            m=m*mat.getVolume();
            Double currentStock = locDetlService.getSumAnfme(matnr);
            if (currentStock == null) {
                currentStock = 0D;
            }
            if (mat.getStoreMax() != null && currentStock + m > mat.getStoreMax()) {
                log.info("WCS入库拦截: 物料超过库存上限, matnr={}, currentStock={}, inboundQty={}, storeMax={}",
                        matnr, currentStock, m, mat.getStoreMax());
                return R.error("物料已到达上限禁止入库");
            }
            //Double val = Math.round((m - matnr.getSafeQty()) * 10000) / 10000.0;
            Config config = configService.selectConfigByCode("SimulationInbound");
            if (config != null && config.getValue().equals("Y")) {