Fix TypeError PRETIXEU-12W

This commit is contained in:
Raphael Michel
2019-05-23 10:49:22 +02:00
parent 6238e1df98
commit d22a7844ea

View File

@@ -430,8 +430,8 @@ class OrderTaxListReport(Report):
[
_('Total'), '', '', '', ''
] + sum(([
localize(round_decimal(price_sums.get(t), self.event.currency)),
localize(round_decimal(tax_sums.get(t), self.event.currency))
localize(round_decimal(price_sums.get(t) or Decimal('0.00'), self.event.currency)),
localize(round_decimal(tax_sums.get(t) or Decimal('0.00'), self.event.currency))
] for t in tax_rates), []),
)