|
@@ -131,7 +131,7 @@ public class K3PurchaseStockOutLogic {
|
|
|
|
|
|
stock.setStockQty(stock.getStockQty().subtract(kingDeePurchaseStockOutItem.getRmRealQty()));
|
|
|
|
|
|
- if (stock.getStockQty().doubleValue() < 1)
|
|
|
+ if (stock.getStockQty().doubleValue() < 0)
|
|
|
throw new RemoteServiceException(kingDeePurchaseStockOutItem.getMaterialName()+"该物料没有库存,不能退库");
|
|
|
|
|
|
stock.updateById();
|