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:
parent
f6f7c835ea
commit
424c34fe13
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue