Show the correct number of paid items

In the order overview the total of "paid orders" is the same as the total number of "ordered items". By using the right variable, we can easily fix that ;)
This commit is contained in:
Unicorn-rzl
2015-07-10 21:51:04 +02:00
parent e2215d2baa
commit 63b7d714e0

View File

@@ -292,7 +292,7 @@ class OverView(EventPermissionRequiredMixin, TemplateView):
'num_pending': sum(c.num_pending for c, i in ctx['items_by_category']),
'num_cancelled': sum(c.num_cancelled for c, i in ctx['items_by_category']),
'num_refunded': sum(c.num_refunded for c, i in ctx['items_by_category']),
'num_paid': sum(c.num_total for c, i in ctx['items_by_category'])
'num_paid': sum(c.num_paid for c, i in ctx['items_by_category'])
}
return ctx