From 64de4900fb0d0e718ebdc87d7cfb6b0077d8cb3e Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Thu, 5 Mar 2015 00:11:54 +0530 Subject: [PATCH] IDEMPIERE-2500 : Inventory valuation fail if there is no standard cost configured --- .../src/org/compiere/process/InventoryValue.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java b/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java index b2e88dea3d..ced0f26a03 100644 --- a/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java +++ b/org.adempiere.base.process/src/org/compiere/process/InventoryValue.java @@ -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;