Changeset 4547 for WAeUP_SRP


Ignore:
Timestamp:
9 Nov 2009, 17:50:16 (15 years ago)
Author:
Henrik Bettermann
Message:

new school fee scheme

File:
1 edited

Legend:

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

    r3970 r4547  
    1313"""
    1414
     15GRP1 = ('BIO','MAT','ISC','PHE','CHE','YOR','ARB','ENG','FRE','HAU','IGB')
     16GRP2 = ('MUS','THA')
     17GRP3 = ('ECON','GEO','SOS','ISS','CRS','PES')
     18#GRP4 = ('CSC','AGE','BED','FAA','HEC')
    1519
    1620ARTS = ('CRS','ISS','MUS','SOS','THA','PES','ECO','GEO')
     
    2327    # PRENCE
    2428    if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
    25         if brain.department in ARTS:
     29        if brain.department in GRP1:
     30            d['all'] = 15370
     31        elif brain.department in GRP2:
     32            d['all'] = 15370
     33        elif brain.department in GRP3:
    2634            d['all'] = 14770
    2735        else:
     
    2937    # new addition for prence to nce-i students whose fees are different from other nce-i students
    3038    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.entry_mode == 'prence':
    31         if brain.department in ARTS:
    32             d['all'] = 13320
     39        if brain.department in GRP1:
     40            d['all'] = 10120
     41        elif brain.department in GRP2:
     42            d['all'] = 10020
     43        elif brain.department in GRP3:
     44            d['all'] = 9520
    3345        else:
    34             d['all'] = 14420
     46            d['all'] = 10520
    3547    # NCE I (fresh)
    3648    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
    37         if brain.department in ARTS:
    38             d['all'] = 9820
     49        if brain.department in GRP1:
     50            d['all'] = 11620
     51        elif brain.department in GRP2:
     52            d['all'] = 11520
     53        elif brain.department in GRP3:
     54            d['all'] = 11020
    3955        else:
    40             d['all'] = 10420
     56            d['all'] = 12120
    4157    # NCE I repeaters
    4258    elif str(brain.level) in ('100','110') and brain.review_state == 'returning' and brain.verdict == 'C':
    43         if brain.department in ARTS:
    44             d['all'] = 8320
    45         elif brain.department in ('SCI','VTE','LAG'):
    46             d['all'] = 11720
    47         elif brain.department in ('ASS','EDU'):
    48             d['all'] = 11120     
     59        if brain.department in GRP1:
     60            d['all'] = 10120
     61        elif brain.department in GRP2:
     62            d['all'] = 10020
     63        elif brain.department in GRP3:
     64            d['all'] = 9520
    4965        else:
    50             d['all'] = 8920
     66            d['all'] = 10520
    5167    # NCE II
    5268    elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
    53         if brain.department in ARTS:
    54             d['all'] = 5450
     69        if brain.department in GRP1:
     70            d['all'] = 6750
     71        elif brain.department in GRP2:
     72            d['all'] = 6650
     73        elif brain.department in GRP3:
     74            d['all'] = 6150
    5575        else:
    56             d['all'] = 6050
     76            d['all'] = 7250
    5777    # NCE II repeaters
    5878    elif str(brain.level) in ('200','210') and brain.verdict == 'C':
    59         if brain.department in ARTS:
    60             d['all'] = 5450
     79        if brain.department in GRP1:
     80            d['all'] = 6750
     81        elif brain.department in GRP2:
     82            d['all'] = 6650
     83        elif brain.department in GRP3:
     84            d['all'] = 6150
    6185        else:
    62             d['all'] = 6050 
     86            d['all'] = 7250
    6387    # NCE III
    6488    elif str(brain.level) in ('200','210','220'):
    65         if brain.department in ARTS:
    66             d['all'] = 6200
     89        if brain.department in GRP1:
     90            d['all'] = 8000
     91        elif brain.department in GRP2:
     92            d['all'] = 7400
     93        elif brain.department in GRP3:
     94            d['all'] = 7400
    6795        else:
    68             d['all'] = 6800
     96            d['all'] = 8000
    6997    # NCE III repeaters and spillover
    7098    elif str(brain.level) in ('300','310') and brain.verdict in ('B','C'):
    71         if brain.department in ARTS:
    72             d['all'] = 4950
     99        if brain.department in GRP1:
     100            d['all'] = 6750
     101        elif brain.department in GRP2:
     102            d['all'] = 6150
     103        elif brain.department in GRP3:
     104            d['all'] = 6150
    73105        else:
    74             d['all'] = 5550            
     106            d['all'] = 6750           
    75107         
    76108    else:
     
    105137
    106138return d
    107 
Note: See TracChangeset for help on using the changeset viewer.