IDEMPIERE-2134 Issues found on Payment Selection process - fix error reported by Nicolas Micoud at https://groups.google.com/d/msg/idempiere/cbv8917XX00/Pf-W0BX9BAAJ

This commit is contained in:
Carlos Ruiz 2019-09-13 13:29:13 +02:00
parent 39a601874d
commit bac7f08495
1 changed files with 1 additions and 1 deletions

View File

@ -148,7 +148,7 @@ public class PaySelectionCreateFrom extends SvrProcess
.append(" WHERE i.C_Invoice_ID=psl.C_Invoice_ID AND psl.IsActive='Y'")
.append(" AND (pmt.DocStatus IS NULL OR pmt.DocStatus NOT IN ('VO','RE')) )")
// Don't generate again invoices already on this payment selection
.append(" AND i.C_Invoice_ID NOT IN (SELECT i.C_Invoice_ID FROM C_PaySelectionLine psl WHERE psl.C_PaySelection_ID=?)"); // ##p9
.append(" AND i.C_Invoice_ID NOT IN (SELECT psl.C_Invoice_ID FROM C_PaySelectionLine psl WHERE psl.C_PaySelection_ID=?)"); // ##p9
// Disputed
if (!p_IncludeInDispute)
sqlWhere.append(" AND i.IsInDispute='N'");