From ce07ca20dbe1e4204a92759260df08a276d7c3b1 Mon Sep 17 00:00:00 2001 From: Deepak Pansheriya Date: Thu, 17 Sep 2015 17:42:12 +0530 Subject: [PATCH] IDEMPIERE-246: Fix issue of wrong parameter passed. --- .../src/org/compiere/process/RollUpCosts.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java b/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java index 54a1256187..85b3597029 100644 --- a/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java +++ b/org.adempiere.base.process/src/org/compiere/process/RollUpCosts.java @@ -97,7 +97,7 @@ public class RollUpCosts extends SvrProcess { { StringBuilder sql = new StringBuilder("SELECT M_ProductBOM_ID FROM M_Product_BOM WHERE M_Product_ID = ? ") .append(" AND AD_Client_ID = ").append(client_id); - int[] prodbomids = DB.getIDsEx(get_TrxName(), sql.toString(), client_id); + int[] prodbomids = DB.getIDsEx(get_TrxName(), sql.toString(), p_id); for (int prodbomid : prodbomids) { if ( !processed.contains(p_id)) {