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 | """
|
---|
12 | return SchoolFee
|
---|
13 | """
|
---|
14 |
|
---|
15 |
|
---|
16 | ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU','THA','GED','GSE','PES','SPC','ENG ','FRE','ARB','HAU','IGB','YOR')
|
---|
17 |
|
---|
18 | # SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED','FAA')
|
---|
19 |
|
---|
20 | d = {}
|
---|
21 |
|
---|
22 | if not brain.mode.endswith('_sw'):
|
---|
23 | # PRENCE
|
---|
24 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
|
---|
25 | if brain.department in ARTS:
|
---|
26 | d['all'] = 14900
|
---|
27 | else:
|
---|
28 | d['all'] = 15400
|
---|
29 | # all repeaters
|
---|
30 | #elif brain.verdict == 'C':
|
---|
31 | # if brain.department in ARTS:
|
---|
32 | # d['all'] = 9170
|
---|
33 | # else:
|
---|
34 | # d['all'] = 9645
|
---|
35 | # NCE I fresh
|
---|
36 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
|
---|
37 | if brain.department in ARTS:
|
---|
38 | d['all'] = 12020
|
---|
39 | else:
|
---|
40 | d['all'] = 12495
|
---|
41 | # NCE II
|
---|
42 | elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
|
---|
43 | if brain.department in ARTS:
|
---|
44 | d['all'] = 11070
|
---|
45 | else:
|
---|
46 | d['all'] = 11545
|
---|
47 | # NCE III
|
---|
48 | elif str(brain.level) in ('200','210','220'):
|
---|
49 | if brain.department in ARTS:
|
---|
50 | d['all'] = 11070
|
---|
51 | else:
|
---|
52 | d['all'] = 11545
|
---|
53 | # NCE III repeater
|
---|
54 | elif str(brain.level) in ('300','310','320') and brain.verdict == 'O':
|
---|
55 | if brain.department in ARTS:
|
---|
56 | d['all'] = 5535
|
---|
57 | else:
|
---|
58 | d['all'] = 5773
|
---|
59 | # NCE III spillover
|
---|
60 | elif str(brain.level) in ('300','310','320') and brain.verdict == 'B':
|
---|
61 | if brain.department in ARTS:
|
---|
62 | d['all'] = 9170
|
---|
63 | else:
|
---|
64 | d['all'] = 9645
|
---|
65 | # NCE III second spillover
|
---|
66 | elif str(brain.level) in ('400','410','420') and brain.verdict == 'B':
|
---|
67 | if brain.department in ARTS:
|
---|
68 | d['all'] = 9170
|
---|
69 | else:
|
---|
70 | d['all'] = 9645
|
---|
71 | else:
|
---|
72 | d['all'] = 0
|
---|
73 |
|
---|
74 | else:
|
---|
75 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
|
---|
76 | if brain.department in ARTS:
|
---|
77 | d['all'] = 20900
|
---|
78 | else:
|
---|
79 | d['all'] = 21400
|
---|
80 | # all repeaters
|
---|
81 | elif brain.verdict == 'C':
|
---|
82 | if brain.department in ARTS:
|
---|
83 | d['all'] = 15900
|
---|
84 | else:
|
---|
85 | d['all'] = 16400
|
---|
86 | # NCE II
|
---|
87 | elif str(brain.level) in ('100','110','120') and brain.review_state == 'returning':
|
---|
88 | if brain.department in ARTS:
|
---|
89 | d['all'] = 17400
|
---|
90 | else:
|
---|
91 | d['all'] = 17900
|
---|
92 | # NCE III
|
---|
93 | elif str(brain.level) in ('200','210','220'):
|
---|
94 | if brain.department in ARTS:
|
---|
95 | d['all'] = 19400
|
---|
96 | else:
|
---|
97 | d['all'] = 19900
|
---|
98 | # NCE IV
|
---|
99 | elif str(brain.level) in ('300','310','320'):
|
---|
100 | if brain.department in ARTS:
|
---|
101 | d['all'] = 17400
|
---|
102 | else:
|
---|
103 | d['all'] = 17900
|
---|
104 | # NCE V
|
---|
105 | elif str(brain.level) in ('400','410','420'):
|
---|
106 | if brain.department in ARTS:
|
---|
107 | d['all'] = 17400
|
---|
108 | else:
|
---|
109 | d['all'] = 17900
|
---|
110 | # NCE V spillover
|
---|
111 | elif str(brain.level) in ('500','510','520') and brain.verdict == 'B':
|
---|
112 | if brain.department in ARTS:
|
---|
113 | d['all'] = 15900
|
---|
114 | else:
|
---|
115 | d['all'] = 16400
|
---|
116 | # NCE V second spillover
|
---|
117 | elif str(brain.level) in ('600','610','620') and brain.verdict == 'B':
|
---|
118 | if brain.department in ARTS:
|
---|
119 | d['all'] = 15900
|
---|
120 | else:
|
---|
121 | d['all'] = 16400
|
---|
122 | else:
|
---|
123 | d['all'] = 0
|
---|
124 |
|
---|
125 |
|
---|
126 |
|
---|
127 | next_info = context.getNextInfo(brain)
|
---|
128 | next_session_str = next_info['next_session_str']
|
---|
129 | d['next_session_id'] = next_info['next_session_id']
|
---|
130 | d['description'] = "School Fee for Session %s" % next_session_str
|
---|
131 |
|
---|
132 | return d
|
---|