fixed opListContoller - getinvoices

This commit is contained in:
Ralph Soika 2025-09-01 11:02:34 +02:00
parent 6c67a81b6f
commit 106515d25a

View file

@ -96,6 +96,17 @@ public class OPListController implements Serializable {
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public List<ItemCollection> getInvoices(String _dbtrNumber) { public List<ItemCollection> getInvoices(String _dbtrNumber) {
// if last dbtr number is not equal then reset the current list....
if (invoiceList != null && //
(lastDbtrNumber == null
|| !lastDbtrNumber.equals(_dbtrNumber) //
|| lastCurrencyFilter == null
|| !lastCurrencyFilter.equals(currencyFilter)) //
) {
invoiceList = null;
}
if (invoiceList != null) { if (invoiceList != null) {
return invoiceList; return invoiceList;
} }