IDEMPIERE-5558 Payment Selection (manual) unusable (#1661)

- fix problem with filling the table before payment rule is set
This commit is contained in:
Carlos Ruiz 2023-02-05 12:19:52 +01:00 committed by GitHub
parent 2b24496d16
commit e6c53e9e32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -331,7 +331,7 @@ public class PaySelect
boolean onlyPositiveBalance, KeyNamePair bpartner, KeyNamePair docType, IMiniTable miniTable) boolean onlyPositiveBalance, KeyNamePair bpartner, KeyNamePair docType, IMiniTable miniTable)
{ {
// not yet initialized // not yet initialized
if (m_sql == null) if (m_sql == null || paymentRule == null)
return; return;
String sql = m_sql; String sql = m_sql;