Changeset - 5380a510d53c
[Not reviewed]
0 2 0
Joel Addison - 5 years ago 2019-10-13 11:34:08
joel@addison.net.au
Fix display of GST amount

Move GST rate to settings. Set to Australian GST rate.
2 files changed with 5 insertions and 1 deletions:
0 comments (0 inline, 0 general)
pinaxcon/settings.py
Show inline comments
...
 
@@ -369,2 +369,3 @@ ATTENDEE_PROFILE_FORM = "pinaxcon.registrasion.forms.ProfileForm"
 
INVOICE_CURRENCY = "AUD"
 
GST_RATE =  Decimal('0.1')
 
TICKET_PRODUCT_CATEGORY = 1
pinaxcon/templatetags/lca2018_tags.py
Show inline comments
...
 
@@ -12,2 +12,3 @@ from symposion.schedule.models import Track
 
CONFERENCE_ID = settings.CONFERENCE_ID
 
GST_RATE = settings.GST_RATE
 

	
...
 
@@ -73,3 +74,2 @@ def presentation_bg_number(presentation, count):
 
def gst(amount):
 
    GST_RATE = Decimal('0.15')
 
    value_no_gst = Decimal(amount / (1 + GST_RATE))
...
 
@@ -82,2 +82,3 @@ def conference_name():
 

	
 

	
 
@register.filter()
...
 
@@ -91,2 +92,3 @@ def day_has_tracks(timetable, day):
 

	
 

	
 
@register.filter()
...
 
@@ -99,2 +101,3 @@ def trackname(room, day):
 

	
 

	
 
@register.simple_tag(takes_context=True)
0 comments (0 inline, 0 general)