Update GST tag
This commit is contained in:
parent
918f4ab6f9
commit
fe86e0cbfe
1 changed files with 3 additions and 2 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue