IDEMPIERE-5558 Payment Selection (manual) unusable when the first bank doesn't have payment rules configured (#1657)

This commit is contained in:
Carlos Ruiz 2023-01-30 12:07:19 +01:00 committed by GitHub
parent cc03f09a0b
commit ad09706b41
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -389,8 +389,8 @@ public class WPaySelect extends PaySelect
BankInfo bi = fieldBankAccount.getSelectedItem().getValue();
ValueNamePair paymentRule = (ValueNamePair) fieldPaymentRule.getSelectedItem().getValue();
ValueNamePair paymentRule = (fieldPaymentRule.getSelectedItem() != null ? (ValueNamePair) fieldPaymentRule.getSelectedItem().getValue() : null);
KeyNamePair bpartner = (KeyNamePair) fieldBPartner.getSelectedItem().getValue();
KeyNamePair docType = (KeyNamePair) fieldDtype.getSelectedItem().getValue();