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