Skip to content
Snippets Groups Projects
Verified Commit 6236389a authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Fix iteration

parent ac708d90
No related branches found
No related tags found
No related merge requests found
Pipeline #58408 canceled
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment