From fe86e0cbfe5fbd659dbe916d134a3f4a1ea1b76c Mon Sep 17 00:00:00 2001 From: Tobias Date: Mon, 1 Oct 2018 10:11:36 +1300 Subject: [PATCH] Update GST tag --- pinaxcon/templatetags/lca2018_tags.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pinaxcon/templatetags/lca2018_tags.py b/pinaxcon/templatetags/lca2018_tags.py index 8620bc10..be27e8ed 100644 --- a/pinaxcon/templatetags/lca2018_tags.py +++ b/pinaxcon/templatetags/lca2018_tags.py @@ -71,8 +71,9 @@ def presentation_bg_number(presentation, count): @register.filter() def gst(amount): - two_places = Decimal(10) ** -2 - return Decimal(amount / 11).quantize(two_places) + GST_RATE = Decimal('0.15') + value_no_gst = Decimal(amount / (1 + GST_RATE)) + return Decimal(amount - value_no_gst).quantize(Decimal('0.01')) @register.simple_tag()