Changeset - fe86e0cbfe5f
[Not reviewed]
0 1 0
Tobias - 6 years ago 2018-09-30 21:11:36
tobias@localhost.localdomain
Update GST tag
1 file changed with 3 insertions and 2 deletions:
0 comments (0 inline, 0 general)
pinaxcon/templatetags/lca2018_tags.py
Show inline comments
...
 
@@ -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()
0 comments (0 inline, 0 general)