From 82de714759fe73f42d1822876f16461a6a648018 Mon Sep 17 00:00:00 2001 From: phib Date: Wed, 3 Dec 2008 00:07:59 +0000 Subject: [PATCH] BT [ 2380306 ] Bank statement "create lines from" broken filter https://sourceforge.net/tracker/index.php?func=detail&aid=2380306&group_id=176962&atid=879332 --- client/src/org/compiere/grid/VCreateFromStatement.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/client/src/org/compiere/grid/VCreateFromStatement.java b/client/src/org/compiere/grid/VCreateFromStatement.java index 2cce5e9809..d9f5fc9030 100644 --- a/client/src/org/compiere/grid/VCreateFromStatement.java +++ b/client/src/org/compiere/grid/VCreateFromStatement.java @@ -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 ?"); //