[3841] | 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 | """ |
---|
[3872] | 14 | MBL= ('MBA','MPAD','LLMCPL','LLMPIL') |
---|
[3841] | 15 | |
---|
| 16 | d = {} |
---|
| 17 | |
---|
[3872] | 18 | if brain.mode.endswith('_ft'): |
---|
[3898] | 19 | # fresh full-time Foundation |
---|
[3872] | 20 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
[3898] | 21 | if brain.entry_mode == 'rm_ft' and brain.lga.startswith('edo'): |
---|
[3873] | 22 | d['all'] = 50000 |
---|
[3872] | 23 | else: |
---|
| 24 | d['all'] = 60000 |
---|
[3898] | 25 | # fresh tull-time students INE |
---|
[3873] | 26 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': |
---|
| 27 | if brain.lga.startswith('edo'): |
---|
[3872] | 28 | d['all'] = 22000 |
---|
| 29 | else: |
---|
| 30 | d['all'] = 0 |
---|
[3898] | 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': |
---|
[3873] | 33 | if brain.lga.startswith('edo'): |
---|
[3872] | 34 | d['all'] = 4300 |
---|
| 35 | else: |
---|
| 36 | d['all'] = 0 |
---|
[3898] | 37 | # postgrad full-time students (fresh) |
---|
[3872] | 38 | elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated': |
---|
[3873] | 39 | if brain.lga.startswith('edo'): |
---|
[3872] | 40 | d['all'] = 62500 |
---|
[3873] | 41 | elif brain.lga == 'foreigner': |
---|
[3872] | 42 | d['all'] = 189500 |
---|
[3873] | 43 | else: |
---|
| 44 | d['all'] = 69500 |
---|
[3898] | 45 | # MBL students (fresh or returning) |
---|
[3907] | 46 | elif str(brain.level) in ('700','800','710','810') and brain.course in MBL: |
---|
[3873] | 47 | if brain.lga.startswith('edo'): |
---|
[3872] | 48 | d['all'] = 89500 |
---|
[3873] | 49 | elif brain.lga == 'foreigner': |
---|
[3872] | 50 | d['all'] = 269500 |
---|
[3873] | 51 | else: |
---|
| 52 | d['all'] = 99500 |
---|
[3898] | 53 | # non-MBL students (fresh or returning) |
---|
[3873] | 54 | elif str(brain.level) in ('700','800','710','810'): |
---|
| 55 | if brain.lga.startswith('edo'): |
---|
[3872] | 56 | d['all'] = 69500 |
---|
[3873] | 57 | if brain.lga == 'foreigner': |
---|
[3872] | 58 | d['all'] = 219500 |
---|
[3873] | 59 | else: |
---|
| 60 | d['all'] = 79500 |
---|
[3898] | 61 | # PHD Students |
---|
| 62 | elif str(brain.level) in ('900','910','1000','1010'): |
---|
[3873] | 63 | if brain.lga.startswith('edo'): |
---|
[3872] | 64 | d['all'] = 99500 |
---|
[3873] | 65 | if brain.lga == 'foreigner': |
---|
[3872] | 66 | d['all'] = 269500 |
---|
[3873] | 67 | else: |
---|
[3898] | 68 | d['all'] = 109500 |
---|
| 69 | else: |
---|
| 70 | d['all'] = 0 |
---|
[3841] | 71 | else: |
---|
[3873] | 72 | # fresh part-time students INE |
---|
[3898] | 73 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': |
---|
[3873] | 74 | if brain.lga.startswith('edo'): |
---|
[3872] | 75 | d['all'] = 45000 |
---|
| 76 | else: |
---|
| 77 | d['all'] = 55000 |
---|
[3898] | 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': |
---|
[3873] | 80 | if brain.lga.startswith('edo'): |
---|
[3872] | 81 | d['all'] = 30000 |
---|
| 82 | else: |
---|
| 83 | d['all'] = 40000 |
---|
| 84 | # postgrad part-time students |
---|
[3873] | 85 | elif str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': |
---|
| 86 | if brain.lga.startswith('edo'): |
---|
[3872] | 87 | d['all'] = 64500 |
---|
[3873] | 88 | if brain.lga == 'foreigner': |
---|
[3872] | 89 | d['all'] = 219500 |
---|
[3873] | 90 | else: |
---|
| 91 | d['all'] = 74500 |
---|
[3898] | 92 | else: |
---|
| 93 | d['all'] = 0 |
---|
[3841] | 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 | |
---|
[3898] | 101 | return d |
---|