Changeset 7885 for WAeUP_SRP


Ignore:
Timestamp:
14 Mar 2012, 20:58:16 (13 years ago)
Author:
Henrik Bettermann
Message:

Change the diploma returning fee 1st and 2nd instalments

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_aaua/getSchoolFee.py

    r7279 r7885  
    1616d['all'] = 0
    1717
    18 MPA = ('MPAPT','MEMPT','MMPPT') 
     18MPA = ('MPAPT','MEMPT','MMPPT')
    1919i2_states = ('school_fee_paid','courses_registered','courses_validated',)
    2020
    2121if brain.mode == 'ug_sw':    # ug_sw students payment does not depend on the current session
    22     if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated': 
     22    if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated':
    2323        d['all'] = 45000
    2424    elif str(brain.level) in ('100',):   #200 returning students
     
    2727        d['all'] = 35000
    2828elif brain.mode == 'pg_sw':
    29      if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated':    # only 600 fresh 
     29     if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated':    # only 600 fresh
    3030         d['all'] = 65000
    31      else:   
     31     else: 
    3232        d['all'] = 80000
    33 elif brain.session in ('06','07',) and brain.review_state == 'cleared_and_validated': 
     33elif brain.session in ('06','07',) and brain.review_state == 'cleared_and_validated':
    3434    if brain.mode == 'dp_pt' and str(brain.level) in ('100',): 
    3535        d['all'] = 40000
     
    3737        d['all'] = 50000
    3838    elif brain.mode == 'pg_pt': 
    39         if str(brain.level) == '600':    # only 600 fresh 
     39        if str(brain.level) == '600':    # only 600 fresh
    4040            d['all'] = 60000
    41         if str(brain.level) == '700':    # only 700 fresh 
     41        if str(brain.level) == '700':    # only 700 fresh
    4242            d['all'] = 75000
    43 elif brain.session in ('06',) and brain.review_state == 'returning': 
     43elif brain.session in ('06',) and brain.review_state == 'returning':
    4444    if brain.mode == 'dp_pt': 
    4545        d['all'] = 35000
     
    5353        else:
    5454            d['all'] = 65000
    55         
     55       
    5656elif brain.session in ('07','08','09','10'):   
    5757    if brain.mode == 'dp_pt': 
     
    6161            d['all'] = 20000
    6262        elif brain.review_state == 'returning' and instalment == '1':
    63             d['all'] = 25000
     63            d['all'] = 30000
    6464        elif brain.review_state in i2_states and instalment == '2':
    65             d['all'] = 10000
     65            d['all'] = 20000
    6666    if brain.mode == 'ug_pt': 
    6767        if brain.review_state == 'cleared_and_validated' and str(brain.level) in ('100','200') and instalment == '1':
     
    8181        # 700 level students, two different certificate groups, 700 level repeaters and 700 level returning students exist
    8282        # MPA students
    83         elif brain.review_state == 'cleared_and_validated' and str(brain.level) in ('700',) and instalment == '1' and brain.course in MPA:                           
     83        elif brain.review_state == 'cleared_and_validated' and str(brain.level) in ('700',) and instalment == '1' and brain.course in MPA:                         
    8484            d['all'] = 85000
    85         elif brain.review_state in i2_states and str(brain.level) in ('700',) and instalment == '2' and brain.course in MPA:   
     85        elif brain.review_state in i2_states and str(brain.level) in ('700',) and instalment == '2' and brain.course in MPA: 
    8686            d['all'] = 80000
    8787        # non-MPA students
    88         elif brain.review_state == 'cleared_and_validated' and str(brain.level) in ('700',) and instalment == '1':                           
     88        elif brain.review_state == 'cleared_and_validated' and str(brain.level) in ('700',) and instalment == '1':                         
    8989            d['all'] = 100000
    9090        elif brain.review_state in i2_states and str(brain.level) in ('700',) and instalment == '2':
     
    105105        elif brain.review_state in i2_states and instalment == '2':
    106106            d['all'] = 75000
    107         
     107       
    108108
    109109next_info = context.getNextInfo(brain)
     
    113113
    114114return d
     115
Note: See TracChangeset for help on using the changeset viewer.