fix: Apply date filter on customer_invoices not all_invoices

v1.3.145:
- CRITICAL FIX: Date filter was running on all invoices
- Now correctly filters customer_invoices by date
- Prevents showing other customers' invoices
This commit is contained in:
Christian 2026-01-27 07:23:19 +01:00
parent bff284f398
commit e14aff89d7
2 changed files with 2 additions and 2 deletions

View File

@ -1 +1 @@
1.3.144
1.3.145

View File

@ -539,7 +539,7 @@ class EconomicService:
# Apply date filter (13 months back)
from dateutil.parser import parse as parse_date
filtered_by_date = []
for inv in all_invoices:
for inv in customer_invoices:
invoice_date_str = inv.get('date')
if invoice_date_str:
try: