IDEMPIERE-4914 #resolve (#832)
This commit is contained in:
parent
1af3cc0848
commit
7745d0f27e
|
@ -2220,9 +2220,9 @@ public class MPayment extends X_C_Payment
|
|||
counter.setRef_Payment_ID(getC_Payment_ID());
|
||||
//
|
||||
String sql = "SELECT C_BankAccount_ID FROM C_BankAccount "
|
||||
+ "WHERE C_Currency_ID=? AND AD_Org_ID IN (0,?) AND IsActive='Y' "
|
||||
+ "WHERE C_Currency_ID=? AND AD_Org_ID IN (0,?) AND IsActive='Y' AND AD_Client_ID = ?"
|
||||
+ "ORDER BY IsDefault DESC";
|
||||
int C_BankAccount_ID = DB.getSQLValue(get_TrxName(), sql, getC_Currency_ID(), counterAD_Org_ID);
|
||||
int C_BankAccount_ID = DB.getSQLValue(get_TrxName(), sql, getC_Currency_ID(), counterAD_Org_ID,getAD_Client_ID());
|
||||
counter.setC_BankAccount_ID(C_BankAccount_ID);
|
||||
|
||||
// References
|
||||
|
|
Loading…
Reference in New Issue