Update GST tag

This commit is contained in:
Tobias 2018-10-01 10:11:36 +13:00
parent 918f4ab6f9
commit fe86e0cbfe

View file

@ -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()