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 | MBL= ('MBA','MPAD','LLMCPL','LLMPIL') |
---|
15 | |
---|
16 | d = {} |
---|
17 | |
---|
18 | d['all'] = 0 |
---|
19 | |
---|
20 | if brain.mode.endswith('_ft'): |
---|
21 | # fresh full-time Foundation |
---|
22 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
23 | if brain.entry_mode == 'rm_ft' and brain.lga.startswith('edo'): |
---|
24 | d['all'] = 65000 |
---|
25 | else: |
---|
26 | d['all'] = 75000 |
---|
27 | # fresh tull-time students INE |
---|
28 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': |
---|
29 | if brain.lga.startswith('edo'): |
---|
30 | d['all'] = 44000 |
---|
31 | else: |
---|
32 | d['all'] = 49000 |
---|
33 | # returning full-time students INE |
---|
34 | elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning' and brain.faculty == 'INE': |
---|
35 | if brain.lga.startswith('edo'): |
---|
36 | d['all'] = 26300 |
---|
37 | else: |
---|
38 | d['all'] = 31300 |
---|
39 | # postgrad full-time students (fresh) |
---|
40 | elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated': |
---|
41 | if brain.lga.startswith('edo'): |
---|
42 | d['all'] = 62500 |
---|
43 | elif brain.lga == 'foreigner': |
---|
44 | d['all'] = 189500 |
---|
45 | else: |
---|
46 | d['all'] = 69500 |
---|
47 | # MBL students (fresh or returning) |
---|
48 | elif str(brain.level) in ('700','800','710','810') and brain.course in MBL: |
---|
49 | if brain.lga.startswith('edo'): |
---|
50 | d['all'] = 89500 |
---|
51 | elif brain.lga == 'foreigner': |
---|
52 | d['all'] = 269500 |
---|
53 | else: |
---|
54 | d['all'] = 99500 |
---|
55 | # non-MBL students (fresh or returning) |
---|
56 | elif str(brain.level) in ('700','800','710','810'): |
---|
57 | if brain.lga.startswith('edo'): |
---|
58 | d['all'] = 69500 |
---|
59 | if brain.lga == 'foreigner': |
---|
60 | d['all'] = 219500 |
---|
61 | else: |
---|
62 | d['all'] = 79500 |
---|
63 | # PHD Students |
---|
64 | elif str(brain.level) in ('900','910','1000','1010'): |
---|
65 | if brain.lga.startswith('edo'): |
---|
66 | d['all'] = 99500 |
---|
67 | if brain.lga == 'foreigner': |
---|
68 | d['all'] = 269500 |
---|
69 | else: |
---|
70 | d['all'] = 109500 |
---|
71 | |
---|
72 | elif brain.mode == 'dp_pt': |
---|
73 | # fresh part-time Diploma students |
---|
74 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
75 | if brain.lga.startswith('edo'): |
---|
76 | d['all'] = 65000 |
---|
77 | else: |
---|
78 | d['all'] = 75000 |
---|
79 | |
---|
80 | # returning part-time Diploma students |
---|
81 | elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning': |
---|
82 | if brain.lga.startswith('edo'): |
---|
83 | d['all'] = 50000 |
---|
84 | else: |
---|
85 | d['all'] = 60000 |
---|
86 | |
---|
87 | elif brain.mode.endswith('_pt'): |
---|
88 | # fresh part-time students |
---|
89 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
90 | if brain.lga.startswith('edo'): |
---|
91 | d['all'] = 45000 |
---|
92 | else: |
---|
93 | d['all'] = 55000 |
---|
94 | |
---|
95 | # returning part-time students |
---|
96 | elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning': |
---|
97 | if brain.lga.startswith('edo'): |
---|
98 | d['all'] = 30000 |
---|
99 | else: |
---|
100 | d['all'] = 40000 |
---|
101 | |
---|
102 | |
---|
103 | # postgrad part-time students |
---|
104 | elif str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': |
---|
105 | if brain.lga.startswith('edo'): |
---|
106 | d['all'] = 64500 |
---|
107 | elif brain.lga == 'foreigner': |
---|
108 | d['all'] = 219500 |
---|
109 | else: |
---|
110 | d['all'] = 74500 |
---|
111 | |
---|
112 | |
---|
113 | next_info = context.getNextInfo(brain) |
---|
114 | next_session_str = next_info['next_session_str'] |
---|
115 | d['next_session_id'] = next_info['next_session_id'] |
---|
116 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
117 | |
---|
118 | return d |
---|