Skip to content

Commit

Permalink
Make include_discrepancies do what it says
Browse files Browse the repository at this point in the history
We were accidentally selecting only discrepant receipts when you had include_discrepancies off, whoops.
  • Loading branch information
kitsuta committed Nov 22, 2024
1 parent 8dd5272 commit fcbae98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uber/site_sections/reg_reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def attendees_nonzero_balance(self, session, include_discrepancies=False):
if include_discrepancies:
filter = True
else:
filter = Attendee.default_cost_cents != item_subquery.c.item_total
filter = Attendee.default_cost_cents == item_subquery.c.item_total

attendees_and_totals = session.query(
Attendee, ModelReceipt.payment_total_sql, ModelReceipt.refund_total_sql, item_subquery.c.item_total
Expand Down

0 comments on commit fcbae98

Please sign in to comment.