[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 | |
---|
[4014] | 18 | d['all'] = 0 |
---|
| 19 | |
---|
[3872] | 20 | if brain.mode.endswith('_ft'): |
---|
[3898] | 21 | # fresh full-time Foundation |
---|
[4100] | 22 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated' and brain.entry_mode == 'rm_ft': |
---|
| 23 | d['all'] = 65000 |
---|
[3898] | 24 | # fresh tull-time students INE |
---|
[3873] | 25 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated' and brain.faculty == 'INE': |
---|
[4100] | 26 | d['all'] = 44000 |
---|
[3898] | 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': |
---|
[4100] | 29 | d['all'] = 26300 |
---|
[3898] | 30 | # postgrad full-time students (fresh) |
---|
[3872] | 31 | elif str(brain.level) == ('600') and brain.review_state == 'cleared_and_validated': |
---|
[4100] | 32 | if brain.lga == 'foreigner': |
---|
[3872] | 33 | d['all'] = 189500 |
---|
[3873] | 34 | else: |
---|
[4100] | 35 | d['all'] = 62500 |
---|
[3898] | 36 | # MBL students (fresh or returning) |
---|
[3907] | 37 | elif str(brain.level) in ('700','800','710','810') and brain.course in MBL: |
---|
[4100] | 38 | if brain.lga == 'foreigner': |
---|
[3872] | 39 | d['all'] = 269500 |
---|
[3873] | 40 | else: |
---|
[4100] | 41 | d['all'] = 89500 |
---|
[3898] | 42 | # non-MBL students (fresh or returning) |
---|
[3873] | 43 | elif str(brain.level) in ('700','800','710','810'): |
---|
| 44 | if brain.lga == 'foreigner': |
---|
[3872] | 45 | d['all'] = 219500 |
---|
[3873] | 46 | else: |
---|
[4100] | 47 | d['all'] = 69500 |
---|
[3898] | 48 | # PHD Students |
---|
| 49 | elif str(brain.level) in ('900','910','1000','1010'): |
---|
[3873] | 50 | if brain.lga == 'foreigner': |
---|
[3872] | 51 | d['all'] = 269500 |
---|
[3873] | 52 | else: |
---|
[4100] | 53 | d['all'] = 99500 |
---|
[4014] | 54 | |
---|
| 55 | elif brain.mode.endswith('_pt'): |
---|
| 56 | # fresh part-time students |
---|
[4100] | 57 | if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
[4101] | 58 | d['all'] = 45000 |
---|
[4100] | 59 | |
---|
[4014] | 60 | # returning part-time students |
---|
| 61 | elif str(brain.level) in ('100','200','300','400','110','210','310','410') and brain.review_state == 'returning': |
---|
[4101] | 62 | d['all'] = 30000 |
---|
[4014] | 63 | |
---|
[4100] | 64 | # fresh part-time Diploma students |
---|
| 65 | elif str(brain.level) == '100' and brain.review_state == 'cleared_and_validated': |
---|
[4101] | 66 | d['all'] = 65000 |
---|
[4100] | 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': |
---|
[4101] | 70 | d['all'] = 50000 |
---|
[4100] | 71 | |
---|
[3872] | 72 | # postgrad part-time students |
---|
[3873] | 73 | elif str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': |
---|
[4100] | 74 | if brain.lga == 'foreigner': |
---|
[3872] | 75 | d['all'] = 219500 |
---|
[3873] | 76 | else: |
---|
[4100] | 77 | d['all'] = 64500 |
---|
[3841] | 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 | |
---|
[4014] | 85 | return d |
---|