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