Fix incorrect order status on customer profile orders (#3785)

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.
This commit is contained in:
Kian Cross
2024-01-03 10:03:13 +00:00
committed by GitHub
parent cb76956887
commit a8893bdc96

View File

@@ -400,7 +400,7 @@ class ProfileView(CustomerRequiredMixin, ListView):
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