IDEMPIERE-2500 : Inventory valuation fail if there is no standard cost configured

This commit is contained in:
Deepak Pansheriya 2015-03-05 00:11:54 +05:30
parent 09dbc18820
commit 64de4900fb
1 changed files with 3 additions and 2 deletions

View File

@ -114,8 +114,9 @@ public class InventoryValue extends SvrProcess
.append("WHERE w.M_Warehouse_ID=").append(p_M_Warehouse_ID);
int noInsertStd = DB.executeUpdateEx(sql.toString(), get_TrxName());
if (log.isLoggable(Level.FINE)) log.fine("Inserted Std=" + noInsertStd);
if (noInsertStd == 0)
return "No Standard Costs found";
//IDEMPIERE-2500 - This may be invalid check. Removing still some one not admit reason
/*if (noInsertStd == 0)
return "No Standard Costs found";*/
// Insert addl Costs
int noInsertCost = 0;