diff --git a/CHANGELOG.rst b/CHANGELOG.rst index dc6e4a79e9c92d4f693062c4292cf6304c84e458..c4e216a84dcce3014853abecafa1e5d8a9ba976e 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -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 diff --git a/aleksis/apps/tezor/models/invoice.py b/aleksis/apps/tezor/models/invoice.py index b870dafea19a5b74644264bfa91c8d58db2f5918..08805fedd809dcd57ae2d0bf507e863bc7d51426 100644 --- a/aleksis/apps/tezor/models/invoice.py +++ b/aleksis/apps/tezor/models/invoice.py @@ -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():