Skip to content

Commit

Permalink
Fix incorrect order status on customer profile orders (#3785)
Browse files Browse the repository at this point in the history
When a customer views the list of their orders on their profile,
orders which have been cancelled with a fee are displayed as 'paid'.
This commit fixes this by using the same logic from other places
where order status badges are displayed.
  • Loading branch information
kiancross committed Jan 3, 2024
1 parent cb76956 commit a8893bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pretix/presale/views/customer.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def get_context_data(self, **kwargs):
for o in ctx['orders']:
if o.pk not in annotated:
continue
o.count_positions = annotated.get(o.pk)['pcnt']
o.pcnt = annotated.get(o.pk)['pcnt']
return ctx


Expand Down

0 comments on commit a8893bd

Please sign in to comment.