Skip to content

Commit

Permalink
Order invoices by date
Browse files Browse the repository at this point in the history
  • Loading branch information
jace committed Mar 7, 2024
1 parent 357bc42 commit 066eb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion boxoffice/models/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def fetch_invoices(self, filters: dict | None = None):
.where(Invoice.organization_id == self.id)
.select_from(Invoice)
.join(Order)
.order_by(Invoice.invoice_no)
.order_by(Invoice.invoiced_at)
)
if 'year' in filters and 'month' in filters:
invoices_query = invoices_query.filter(
Expand Down

0 comments on commit 066eb9d

Please sign in to comment.