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:
parent
bff284f398
commit
e14aff89d7
@ -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:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user