From fe86e0cbfe5fbd659dbe916d134a3f4a1ea1b76c 2018-09-30 21:11:36 From: Tobias Date: 2018-09-30 21:11:36 Subject: [PATCH] Update GST tag --- diff --git a/pinaxcon/templatetags/lca2018_tags.py b/pinaxcon/templatetags/lca2018_tags.py index 8620bc10314e8799cb5e75a2d5ca0a1f6d08c39f..be27e8ed2340d6700951039e353b83a8386afff4 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()