From 106515d25a981179f123c4db7978226da72e8120 Mon Sep 17 00:00:00 2001 From: Ralph Soika Date: Mon, 1 Sep 2025 11:02:34 +0200 Subject: [PATCH] fixed opListContoller - getinvoices --- .../java/com/alexanderlogistics/OPListController.java | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java index d616e74..7f9eec0 100644 --- a/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java +++ b/office-alexander-logistics-app/src/main/java/com/alexanderlogistics/OPListController.java @@ -96,6 +96,17 @@ public class OPListController implements Serializable { */ @SuppressWarnings("unchecked") public List 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) { return invoiceList; }