diff --git a/aleksis/apps/tezor/models/invoice.py b/aleksis/apps/tezor/models/invoice.py index 03f4fc9c6131ade2eb47fac6b9b05bc97197eec8..448f470b9293fe62909ed3d6d727ce3b3c119ee7 100644 --- a/aleksis/apps/tezor/models/invoice.py +++ b/aleksis/apps/tezor/models/invoice.py @@ -59,12 +59,13 @@ class Invoice(BasePayment, PureDjangoModel): tax_amounts[item.tax_rate] += item.price / (item.tax_rate + 100) * item.tax_rate values = [] - for tax_rate, total in tax_amounts: + for tax_rate, total in tax_amounts.items(): values.append({ "name": _("Included VAT {} %").format(tax_rate), "value": total, "currency": self.currency, }) + values.append({ "name": _("Gross total"), "value": self.total,