From 424c34fe1386546bb5e9885d8f48e458f0a1b33a Mon Sep 17 00:00:00 2001 From: vpj-cd Date: Thu, 18 Mar 2010 20:15:24 +0000 Subject: [PATCH] https://sourceforge.net/tracker/?func=detail&atid=879332&aid=2001910&group_id=176962 Now Physical Inventory can be completed avoid if the cost are in zero. it allow that the operation is not stop. Link to SF Tracker: http://sourceforge.net/support/tracker.php?aid=2001910 --- base/src/org/compiere/model/MInventory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); }