Browse Source

后端验证库位 一致的时候不允许移库

master
常熟吴彦祖 4 weeks ago
parent
commit
37a42db88e
  1. 4
      src/main/java/com/gaotao/modules/other/service/impl/InventoryMoveServiceImpl.java

4
src/main/java/com/gaotao/modules/other/service/impl/InventoryMoveServiceImpl.java

@ -234,7 +234,7 @@ public class InventoryMoveServiceImpl implements InventoryMoveService {
throw new XJException("部分HandlingUnit不存在或site不匹配"); throw new XJException("部分HandlingUnit不存在或site不匹配");
} }
/* for (HandlingUnit hu : handlingUnits) {
for (HandlingUnit hu : handlingUnits) {
if (!"Y".equals(hu.getInStockFlag())) { if (!"Y".equals(hu.getInStockFlag())) {
throw new XJException("HandlingUnit不在库,无法移库: " + hu.getUnitId()); throw new XJException("HandlingUnit不在库,无法移库: " + hu.getUnitId());
} }
@ -242,7 +242,7 @@ public class InventoryMoveServiceImpl implements InventoryMoveService {
if (dto.getTargetLocationId().equals(hu.getLocationId())) { if (dto.getTargetLocationId().equals(hu.getLocationId())) {
throw new XJException("目标库位不能与当前库位相同: " + hu.getUnitId()); throw new XJException("目标库位不能与当前库位相同: " + hu.getUnitId());
} }
}*/
}
return handlingUnits; return handlingUnits;
} }

Loading…
Cancel
Save