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','FAA') |
---|
17 | |
---|
18 | # SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED') |
---|
19 | |
---|
20 | d = {} |
---|
21 | |
---|
22 | if not brain.mode.endswith('_sw'): |
---|
23 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
24 | if brain.department in ARTS: |
---|
25 | d['all'] = 15900 |
---|
26 | else: |
---|
27 | d['all'] = 16400 |
---|
28 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
29 | if brain.department in ARTS: |
---|
30 | d['all'] = 13020 |
---|
31 | else: |
---|
32 | d['all'] = 13495 |
---|
33 | elif str(brain.level) == '100' and brain.review_state == 'returning': |
---|
34 | if brain.department in ARTS: |
---|
35 | d['all'] = 12070 |
---|
36 | else: |
---|
37 | d['all'] = 12545 |
---|
38 | elif str(brain.level) in ('200','210','220'): |
---|
39 | if brain.department in ARTS: |
---|
40 | d['all'] = 12070 |
---|
41 | else: |
---|
42 | d['all'] = 12545 |
---|
43 | # repeaters = spillover |
---|
44 | elif str(brain.level) in ('300','310','320'): |
---|
45 | if brain.department in ARTS: |
---|
46 | d['all'] = 10170 |
---|
47 | else: |
---|
48 | d['all'] = 10645 |
---|
49 | else: |
---|
50 | d['all'] = 0 |
---|
51 | else: |
---|
52 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
53 | if brain.department in ARTS: |
---|
54 | d['all'] = 21900 |
---|
55 | else: |
---|
56 | d['all'] = 22400 |
---|
57 | elif str(brain.level) == '100' and brain.review_state == 'returning': |
---|
58 | if brain.department in ARTS: |
---|
59 | d['all'] = 18400 |
---|
60 | else: |
---|
61 | d['all'] = 18900 |
---|
62 | elif str(brain.level) in ('200','210','220'): |
---|
63 | if brain.department in ARTS: |
---|
64 | d['all'] = 20400 |
---|
65 | else: |
---|
66 | d['all'] = 20900 |
---|
67 | elif str(brain.level) in ('300','310','320'): |
---|
68 | if brain.department in ARTS: |
---|
69 | d['all'] = 18400 |
---|
70 | else: |
---|
71 | d['all'] = 18900 |
---|
72 | |
---|
73 | elif str(brain.level) in ('400','410','420'): |
---|
74 | if brain.department in ARTS: |
---|
75 | d['all'] = 18400 |
---|
76 | else: |
---|
77 | d['all'] = 18900 |
---|
78 | |
---|
79 | # repeaters = spillover |
---|
80 | elif str(brain.level) in ('500','510','520'): |
---|
81 | if brain.department in ARTS: |
---|
82 | d['all'] = 16900 |
---|
83 | else: |
---|
84 | d['all'] = 17400 |
---|
85 | else: |
---|
86 | d['all'] = 0 |
---|
87 | |
---|
88 | |
---|
89 | next_info = context.getNextInfo(brain) |
---|
90 | next_session_str = next_info['next_session_str'] |
---|
91 | d['next_session_id'] = next_info['next_session_id'] |
---|
92 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
93 | |
---|
94 | return d |
---|
95 | |
---|