Backend order list: Show payment amount

This commit is contained in:
Raphael Michel
2020-12-15 15:44:38 +01:00
parent c6a98fad5a
commit a40951060f
3 changed files with 12 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ class OrderList(OrderSearchMixin, EventPermissionRequiredMixin, PaginationMixin,
annotated = {
o['pk']: o
for o in
Order.annotate_overpayments(Order.objects).filter(
Order.annotate_overpayments(Order.objects, sums=True).filter(
pk__in=[o.pk for o in ctx['orders']]
).annotate(
pcnt=Subquery(s, output_field=IntegerField()),