diff --git a/org.adempiere.base/src/org/compiere/model/MBankStatementLoader.java b/org.adempiere.base/src/org/compiere/model/MBankStatementLoader.java index 7a61593ae0..c66d00d7b5 100644 --- a/org.adempiere.base/src/org/compiere/model/MBankStatementLoader.java +++ b/org.adempiere.base/src/org/compiere/model/MBankStatementLoader.java @@ -178,12 +178,18 @@ import org.compiere.util.Util; } // Initialize lookup lists MTable table = MTable.get(Env.getCtx(), X_C_BankAccount.Table_ID); - Query query = table.createQuery("IsActive='Y'", null); - bankAccountList = query.list(); + Query query = table.createQuery(null, get_TrxName()); + bankAccountList = query + .setOnlyActiveRecords(true) + .setClient_ID() + .list(); table = MTable.get(Env.getCtx(), X_C_Currency.Table_ID); - query = table.createQuery("IsActive='Y'", null); - List currencyList = query.list(); + query = table.createQuery("AD_Client_ID IN (0, ?)", get_TrxName()); + List currencyList = query + .setOnlyActiveRecords(true) + .setParameters(getAD_Client_ID()) + .list(); currencyMap = new HashMap() ; for (X_C_Currency currency : currencyList) {