IDEMPIERE-246: Fix issue of wrong parameter passed.
This commit is contained in:
parent
22ed5bebb4
commit
ce07ca20db
|
@ -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 = ? ")
|
StringBuilder sql = new StringBuilder("SELECT M_ProductBOM_ID FROM M_Product_BOM WHERE M_Product_ID = ? ")
|
||||||
.append(" AND AD_Client_ID = ").append(client_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) {
|
for (int prodbomid : prodbomids) {
|
||||||
if ( !processed.contains(p_id)) {
|
if ( !processed.contains(p_id)) {
|
||||||
|
|
Loading…
Reference in New Issue