BT [ 2380306 ] Bank statement "create lines from" broken filter

https://sourceforge.net/tracker/index.php?func=detail&aid=2380306&group_id=176962&atid=879332
This commit is contained in:
phib 2008-12-03 00:07:59 +00:00
parent 724fbe0272
commit 82de714759
1 changed files with 4 additions and 0 deletions

View File

@ -136,6 +136,10 @@ public class VCreateFromStatement extends VCreateFrom implements ActionListener
+ " AND p.DocStatus IN ('CO','CL','RE','VO') AND p.PayAmt<>0"
+ " AND p.C_BankAccount_ID = ?");
sql.append( " AND NOT EXISTS (SELECT * FROM C_BankStatementLine l "
// Voided Bank Statements have 0 StmtAmt
+ "WHERE p.C_Payment_ID=l.C_Payment_ID AND l.StmtAmt <> 0)");
if (documentNoField.getText().length() > 0)
sql.append(" AND UPPER(p.DocumentNo) LIKE ?");
//