BF [3062723] - Payment Rule incorectly filling Direct Debit bank account
http://sourceforge.net/support/tracker.php?aid=3062723 Thanks to Michael McKay (mjmckay) for reporting and suggesting the solution
This commit is contained in:
parent
74c19f5c65
commit
b946639903
|
@ -677,9 +677,11 @@ public class VPayment extends CDialog
|
||||||
/**
|
/**
|
||||||
* Load Accounts
|
* Load Accounts
|
||||||
*/
|
*/
|
||||||
SQL = "SELECT a.C_BP_BankAccount_ID, NVL(b.Name, ' ')||a.AccountNo AS Acct "
|
SQL = "SELECT a.C_BP_BankAccount_ID, NVL(b.Name, ' ')||'_'||NVL(a.AccountNo, ' ') AS Acct "
|
||||||
+ "FROM C_BP_BankAccount a,C_Bank b "
|
+ "FROM C_BP_BankAccount a"
|
||||||
+ "WHERE C_BPartner_ID=? AND a.IsActive='Y'";
|
+ " LEFT OUTER JOIN C_Bank b ON (a.C_Bank_ID=b.C_Bank_ID) "
|
||||||
|
+ "WHERE C_BPartner_ID=?"
|
||||||
|
+ "AND a.IsActive='Y' AND a.IsACH='Y'";
|
||||||
kp = null;
|
kp = null;
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
|
@ -720,9 +720,11 @@ public class WPayment extends Window
|
||||||
/**
|
/**
|
||||||
* Load Accounts
|
* Load Accounts
|
||||||
*/
|
*/
|
||||||
SQL = "SELECT a.C_BP_BankAccount_ID, NVL(b.Name, ' ')||a.AccountNo AS Acct "
|
SQL = "SELECT a.C_BP_BankAccount_ID, NVL(b.Name, ' ')||'_'||NVL(a.AccountNo, ' ') AS Acct "
|
||||||
+ "FROM C_BP_BankAccount a,C_Bank b "
|
+ "FROM C_BP_BankAccount a"
|
||||||
+ "WHERE C_BPartner_ID=? AND a.IsActive='Y'";
|
+ " LEFT OUTER JOIN C_Bank b ON (a.C_Bank_ID=b.C_Bank_ID) "
|
||||||
|
+ "WHERE C_BPartner_ID=?"
|
||||||
|
+ "AND a.IsActive='Y' AND a.IsACH='Y'";
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
PreparedStatement pstmt = DB.prepareStatement(SQL, null);
|
PreparedStatement pstmt = DB.prepareStatement(SQL, null);
|
||||||
|
|
Loading…
Reference in New Issue