source: WAeUP_SRP/trunk/skins/waeup_fceokene/getSchoolFee.py @ 6982

Last change on this file since 6982 was 5509, checked in by Henrik Bettermann, 14 years ago

school fee for Professional Diploma in Education students (called PDE, not to be confised with post direct entry)

File size: 4.1 KB
RevLine 
[3759]1## Script (Python) "getSchoolFee"
2##bind container=container
3##bind context=context
4##bind namespace=
5##bind script=script
6##bind subpath=traverse_subpath
7##parameters=brain=None
8##title=
9##
10# $Id: getSchoolFee.py 2534 2007-11-05 06:37:12Z henrik $
11"""
12return SchoolFee
13"""
14
15
[4536]16ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU','THA','GED','GSE','PES','SPC','ENG ','FRE','ARB','HAU','IGB','YOR')
[3759]17
[4536]18# SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED','FAA')
[3759]19
20d = {}
21
[5509]22#PDE Students
23if brain.mode == 'pd_ft':
24    d['all'] = 35000
25elif not brain.mode.endswith('_sw'):
[3760]26    # PRENCE
[3759]27    if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
28        if brain.department in ARTS:
[4551]29            d['all'] = 14900
[3759]30        else:
[4551]31            d['all'] = 15400
[3760]32    # all repeaters
[3802]33    #elif brain.verdict == 'C':
34    #    if brain.department in ARTS:
[4551]35    #        d['all'] = 9170
[3802]36    #    else:
[4551]37    #        d['all'] = 9645
[3760]38    # NCE I fresh
[3759]39    elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
40        if brain.department in ARTS:
[4551]41            d['all'] = 12020
[3759]42        else:
[4551]43            d['all'] = 12495
[3760]44    # NCE II
45    elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
[3759]46        if brain.department in ARTS:
[4551]47            d['all'] = 11070
[3759]48        else:
[4551]49            d['all'] = 11545
[3760]50    # NCE III
[3759]51    elif str(brain.level) in ('200','210','220'):
52        if brain.department in ARTS:
[4551]53            d['all'] = 11070
[3759]54        else:
[4551]55            d['all'] = 11545
[5374]56    # NCE III repeater
57    elif str(brain.level) in ('300','310','320') and brain.verdict == 'O':
58        if brain.department in ARTS:
59            d['all'] = 5535
60        else:
61            d['all'] = 5773         
[3761]62    # NCE III spillover
63    elif str(brain.level) in ('300','310','320') and brain.verdict == 'B':
64        if brain.department in ARTS:
[4551]65            d['all'] = 9170
[3761]66        else:
[4862]67            d['all'] = 9645       
68    # NCE III second spillover
69    elif str(brain.level) in ('400','410','420') and brain.verdict == 'B':
70        if brain.department in ARTS:
71            d['all'] = 9170
72        else:
73            d['all'] = 9645                   
[3759]74    else:
[3760]75        d['all'] = 0   
76
[3759]77else:
78    if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
79        if brain.department in ARTS:
[5419]80            d['all'] = 21900
[3759]81        else:
[5419]82            d['all'] = 22400
[3760]83    # all repeaters
[5419]84    #elif brain.verdict == 'C':
85    #    if brain.department in ARTS:
86    #        d['all'] = 16900
87    #    else:
88    #        d['all'] = 17400
[3760]89    # NCE II           
90    elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
91        if brain.department in ARTS:
[5419]92            d['all'] = 18400
[3759]93        else:
[5419]94            d['all'] = 18900
[3760]95    # NCE III
[3759]96    elif str(brain.level) in ('200','210','220'):
97        if brain.department in ARTS:
[5419]98            d['all'] = 20400
[3759]99        else:
[5419]100            d['all'] = 20900
[3760]101    # NCE IV
[3759]102    elif str(brain.level) in ('300','310','320'):
103        if brain.department in ARTS:
[5419]104            d['all'] = 18400
[3759]105        else:
[5419]106            d['all'] = 18900
[3760]107    # NCE V
[3759]108    elif str(brain.level) in ('400','410','420'):
109        if brain.department in ARTS:
[5419]110            d['all'] = 18400
[3759]111        else:
[5419]112            d['all'] = 18900
[3761]113    # NCE V spillover
114    elif str(brain.level) in ('500','510','520') and brain.verdict == 'B':
115        if brain.department in ARTS:
[5419]116            d['all'] = 16900
[3761]117        else:
[5419]118            d['all'] = 17400         
[4862]119    # NCE V second spillover
120    elif str(brain.level) in ('600','610','620') and brain.verdict == 'B':
121        if brain.department in ARTS:
[5419]122            d['all'] = 16900
[4862]123        else:
[5419]124            d['all'] = 17400                   
[3759]125    else:
[3761]126        d['all'] = 0               
[3759]127
128
[3761]129
[3759]130next_info = context.getNextInfo(brain)
131next_session_str = next_info['next_session_str']
132d['next_session_id'] = next_info['next_session_id']
133d['description'] = "School Fee for Session %s" % next_session_str
134
135return d
Note: See TracBrowser for help on using the repository browser.