Changeset 8679


Ignore:
Timestamp:
11 Jun 2012, 11:28:03 (12 years ago)
Author:
Henrik Bettermann
Message:

Add penalty fee which is different for pg and ug students.

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

Legend:

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

    r8318 r8679  
    5454    amount = info['amount'] = fee_dict['returning']
    5555
    56 if new and int(student_record.session) < 11:
    57     amount_int = int(amount)
    58     amount_int += 5000
    59     amount = info['amount'] = '%d' % (amount_int)
    60 if returning and int(student_record.session) < 10:
     56late_registration = False
     57if new and int(student_record.session) < 11 and student_record.mode.startswith('ug'):
     58    late_registration = True
     59if returning and int(student_record.session) < 10 and student_record.mode.startswith('ug'):
     60    late_registration = True
     61if new and int(student_record.session) < 10 and student_record.mode.startswith('pg'):
     62    late_registration = True
     63if returning and int(student_record.session) < 9 and student_record.mode.startswith('pg'):
     64    late_registration = True
     65if late_registration:
    6166    amount_int = int(amount)
    6267    amount_int += 5000
  • WAeUP_SRP/trunk/skins/waeup_uniben/pay_interswitch.py

    r8456 r8679  
    5656    amount = info['amount'] = fee_dict['returning']
    5757
    58 if new and int(student_record.session) < 11:
    59     amount_int = int(amount)
    60     amount_int += 5000
    61     amount = info['amount'] = '%d' % (amount_int)
    62 if returning and int(student_record.session) < 10:
     58late_registration = False
     59if new and int(student_record.session) < 11 and student_record.mode.startswith('ug'):
     60    late_registration = True
     61if returning and int(student_record.session) < 10 and student_record.mode.startswith('ug'):
     62    late_registration = True
     63if new and int(student_record.session) < 10 and student_record.mode.startswith('pg'):
     64    late_registration = True
     65if returning and int(student_record.session) < 9 and student_record.mode.startswith('pg'):
     66    late_registration = True
     67if late_registration:
    6368    amount_int = int(amount)
    6469    amount_int += 5000
Note: See TracChangeset for help on using the changeset viewer.