diff --git a/VERSION b/VERSION index 71600e9..07faf6b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.3.141 \ No newline at end of file +1.3.142 \ No newline at end of file diff --git a/app/services/economic_service.py b/app/services/economic_service.py index 711bc02..67a81b5 100644 --- a/app/services/economic_service.py +++ b/app/services/economic_service.py @@ -458,11 +458,11 @@ class EconomicService: logger.info(f"📅 Will filter invoices from {start_date} onwards (13 months for yearly billed items)") async with aiohttp.ClientSession() as session: - # Fetch from /invoices/sent endpoint (covers most active invoices) + # Fetch from /invoices/drafts endpoint (covers active invoices) # Then filter by customer in code all_invoices = [] - endpoint = f"{self.api_url}/invoices/sent" + endpoint = f"{self.api_url}/invoices/drafts" logger.info(f"📋 Fetching invoices from {endpoint}") try: