Ignore:
Timestamp:
5 Mar 2011, 12:34:09 (14 years ago)
Author:
Henrik Bettermann
Message:

Implementation of a Late Registration Fee (FUTMinna only). This was more work and customization than expected. We urgently need a new consistent payment module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_futminna/getInterswitchParams.py

    r5631 r5795  
    2121d['type'] = 'online'
    2222d['status'] = 'started'
    23 d['surcharge'] = '300'
     23d['surcharge'] = 300
    2424if test == 'simulate':
    2525    d['action'] = "%s/payments/%s/simulate_callback" % (student.absolute_url(),payment_id) #do not use simulate_callback
     
    3636    d['pay_item_name'] = "FUT Minna %(type_description)s" % d
    3737    if paytype == 'HOMH':
    38         d['amount'] = 15000
     38        d['fee'] = 15000
    3939    elif student_record.level  in ('100','200','300','400','500') and student_record.faculty in ('EET','SET','AAT','ICT','EMT'):
    40         d['amount'] = 9000
     40        d['fee'] = 9000
    4141    else:
    42         d['amount'] = 7000
     42        d['fee'] = 7000
     43    d['amount'] = d['fee'] + d['surcharge']
    4344    d['category'] = 'hostel_maintenance'
    4445    d['item'] = paytype
     
    5051    xmldict['department'] = student_record.department
    5152    xmldict['faculty'] = student_record.faculty
    52     xmldict['fut_amount'] = "%d" % int(100*d['amount'])
     53    xmldict['fut_amount'] = "%d" % int(100*d['fee'])
    5354   
    5455    xmltext = """<payment_item_detail>
Note: See TracChangeset for help on using the changeset viewer.