Allow to round taxes on order-level

This commit is contained in:
Raphael Michel
2025-04-20 20:00:23 +02:00
parent b4264c0ae7
commit 3735b6b5a9
14 changed files with 555 additions and 77 deletions

View File

@@ -649,7 +649,9 @@ class OrderTransactions(OrderView):
ctx['sums'] = self.order.transactions.aggregate(
sum_count=Sum('count'),
full_price=Sum(F('count') * F('price')),
full_price_includes_rounding_correction=Sum(F('count') * F('price_includes_rounding_correction')),
full_tax_value=Sum(F('count') * F('tax_value')),
full_tax_value_includes_rounding_correction=Sum(F('count') * F('tax_value_includes_rounding_correction')),
)
return ctx