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
This commit is contained in:
vpj-cd 2010-03-18 20:15:24 +00:00
parent f6f7c835ea
commit 424c34fe13
1 changed files with 2 additions and 2 deletions

View File

@ -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();
}