diff --git a/base/src/org/compiere/model/MInventory.java b/base/src/org/compiere/model/MInventory.java index c43c4f3f87..aa03d0e2b9 100644 --- a/base/src/org/compiere/model/MInventory.java +++ b/base/src/org/compiere/model/MInventory.java @@ -970,9 +970,9 @@ public class MInventory extends X_M_Inventory implements DocAction ProductCost pc = new ProductCost (getCtx(), line.getM_Product_ID(), M_AttributeSetInstance_ID, line.get_TrxName()); pc.setQty(qty); - costs = pc.getProductCosts(as, line.getAD_Org_ID(), as.getCostingMethod(), 0,false); + costs = pc.getProductCosts(as, line.getAD_Org_ID(), as.getCostingMethod(), 0,true); } - if (costs == null || costs.signum() == 0) + if (costs == null) { return "No Costs for " + line.getProduct().getName(); }