|
|
@@ -208,7 +208,7 @@ public class CommodityInOutboundServiceImpl implements CommodityInOutboundServic
|
|
|
//出库
|
|
|
if (NumberUtil.compare(product.getErpReserve(), DoubleConstant.zero) == 0) {
|
|
|
throw new IllegalOperatorException("型号:" + product.getPcmpcode() + ",品牌:" +product.getPbranden()+"的物料为0,不能做出库");
|
|
|
- } else if (NumberUtil.compare(product.getErpReserve(), inOutboundDetail.getQty()) > 0) {
|
|
|
+ } else if (NumberUtil.compare(product.getErpReserve(), inOutboundDetail.getQty()) > -1) {
|
|
|
product.setErpReserve(NumberUtil.sub(product.getErpReserve(), inOutboundDetail.getQty()));
|
|
|
productSet.add(product);
|
|
|
} else {
|