We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbf3c91 commit fefdc4bCopy full SHA for fefdc4b
weblate_web/crm/views.py
@@ -588,7 +588,9 @@ def _get_invoices_and_totals(
588
self, year: int, month: int | None = None
589
) -> tuple[list[Invoice], dict[UUID, Decimal]]:
590
"""Fetch invoices and pre-calculate totals (shared helper)."""
591
- query = Invoice.objects.filter(kind=InvoiceKind.INVOICE, issue_date__year=year)
+ query = Invoice.objects.filter(
592
+ kind=InvoiceKind.INVOICE, issue_date__year=year
593
+ ).prefetch_related("invoiceitem_set")
594
if month:
595
query = query.filter(issue_date__month=month)
596
0 commit comments