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

Fix VAT in totals table

parent 57479849
No related branches found
No related tags found
No related merge requests found
Pipeline #59981 failed
......@@ -6,6 +6,14 @@ All notable changes to this project will be documented in this file.
The format is based on `Keep a Changelog`_,
and this project adheres to `Semantic Versioning`_.
`1.0.4`_ - 2022-03-15
---------------------
Fixed
~~~~~
* Fixed VAT display in totals table
`1.0.3`_ - 2022-03-15
---------------------
......@@ -63,3 +71,4 @@ Added
.. _1.0.1: https://edugit.org/AlekSIS/onboarding//AlekSIS-App-Tezor/-/tags/1.0.1
.. _1.0.2: https://edugit.org/AlekSIS/onboarding//AlekSIS-App-Tezor/-/tags/1.0.2
.. _1.0.3: https://edugit.org/AlekSIS/onboarding//AlekSIS-App-Tezor/-/tags/1.0.3
.. _1.0.4: https://edugit.org/AlekSIS/onboarding//AlekSIS-App-Tezor/-/tags/1.0.4
......@@ -168,7 +168,7 @@ class Invoice(BasePayment, PureDjangoModel):
tax_amounts = {}
for item in self.get_purchased_items():
tax_amounts.setdefault(item.tax_rate, 0)
tax_amounts[item.tax_rate] += item.price * item.tax_rate
tax_amounts[item.tax_rate] += item.price * item.tax_rate / 100
values = []
for tax_rate, total in tax_amounts.items():
......
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