Changeset 8318 for WAeUP_SRP


Ignore:
Timestamp:
30 Apr 2012, 15:18:10 (12 years ago)
Author:
Henrik Bettermann
Message:

Uups, returning students and new students must be treated differently when adding late payment fees.

Location:
WAeUP_SRP/trunk/skins/waeup_uniben
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_uniben/pay_etranzact.py

    r8296 r8318  
    5454    amount = info['amount'] = fee_dict['returning']
    5555
    56 if int(student_record.session) < 11:
     56if new and int(student_record.session) < 11:
    5757    amount_int = int(amount)
    58     info['amount'] = '%d' % (amount_int + 5000)
     58    amount_int += 5000
     59    amount = info['amount'] = '%d' % (amount_int)
     60if returning and int(student_record.session) < 10:
     61    amount_int = int(amount)
     62    amount_int += 5000
     63    amount = info['amount'] = '%d' % (amount_int)
    5964
    6065info['surcharge'] = '0'  # Uniben doesn't show the surcharge on the slip
  • WAeUP_SRP/trunk/skins/waeup_uniben/pay_interswitch.py

    r8316 r8318  
    5656    amount = info['amount'] = fee_dict['returning']
    5757
    58 if int(student_record.session) < 11:
     58if new and int(student_record.session) < 11:
     59    amount_int = int(amount)
     60    amount_int += 5000
     61    amount = info['amount'] = '%d' % (amount_int)
     62if returning and int(student_record.session) < 10:
    5963    amount_int = int(amount)
    6064    amount_int += 5000
Note: See TracChangeset for help on using the changeset viewer.