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

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

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.