Fix transaction view after Django upgrade

This commit is contained in:
Raphael Michel
2023-08-09 17:11:20 +02:00
parent edb0cd0941
commit cfd6376936
2 changed files with 2 additions and 2 deletions

View File

@@ -69,7 +69,7 @@
<td></td>
<td class="text-right flip">
<strong>
{{ sums.count }}
{{ sums.sum_count }}
</strong>
</td>
<td></td>

View File

@@ -418,7 +418,7 @@ class OrderTransactions(OrderView):
'item', 'variation', 'subevent'
).order_by('datetime')
ctx['sums'] = self.order.transactions.aggregate(
count=Sum('count'),
sum_count=Sum('count'),
full_price=Sum(F('count') * F('price')),
full_tax_value=Sum(F('count') * F('tax_value')),
)