[3780] | 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 | |
---|
[6911] | 15 | late_registration_fee = 0 |
---|
[3780] | 16 | |
---|
| 17 | d = {} |
---|
[7132] | 18 | d['lrf'] = late_registration_fee |
---|
[3780] | 19 | |
---|
| 20 | if brain.mode.endswith('_ft'): |
---|
| 21 | # fresh remedial |
---|
| 22 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
[4010] | 23 | if brain.entry_mode == 'rmd_ft': |
---|
[5795] | 24 | d['lrf'] = late_registration_fee |
---|
[6911] | 25 | d['all'] = 80200 |
---|
[4010] | 26 | else: |
---|
[5795] | 27 | d['lrf'] = late_registration_fee |
---|
[6911] | 28 | d['all'] = 74200 |
---|
| 29 | |
---|
[3780] | 30 | # fresh |
---|
[3800] | 31 | elif brain.review_state == 'cleared_and_validated': |
---|
[3993] | 32 | if brain.mode == 'jm_ft': |
---|
[5795] | 33 | d['lrf'] = late_registration_fee |
---|
[6911] | 34 | d['all'] = 72700 |
---|
[3993] | 35 | elif brain.lga == 'foreigner': |
---|
[5795] | 36 | d['lrf'] = late_registration_fee |
---|
[6911] | 37 | d['all'] = 131500 |
---|
[3780] | 38 | else: |
---|
[5795] | 39 | d['lrf'] = late_registration_fee |
---|
[6995] | 40 | d['all'] = 37000 # School Fee reduced by 8000 |
---|
[3780] | 41 | # returning |
---|
| 42 | elif brain.review_state == 'returning': |
---|
[3993] | 43 | if brain.mode == 'jm_ft': |
---|
[5795] | 44 | d['lrf'] = late_registration_fee |
---|
[6977] | 45 | d['all'] = 37000 |
---|
[3993] | 46 | elif brain.lga == 'foreigner': |
---|
[5795] | 47 | d['lrf'] = late_registration_fee |
---|
[6911] | 48 | d['all'] = 109500 |
---|
[3780] | 49 | else: |
---|
[5795] | 50 | d['lrf'] = late_registration_fee |
---|
[6977] | 51 | d['all'] = 20000 |
---|
[3780] | 52 | else: |
---|
| 53 | d['all'] = 0 |
---|
| 54 | else: |
---|
| 55 | d['all'] = 0 |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | next_info = context.getNextInfo(brain) |
---|
| 59 | next_session_str = next_info['next_session_str'] |
---|
| 60 | d['next_session_id'] = next_info['next_session_id'] |
---|
| 61 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
| 62 | |
---|
| 63 | return d |
---|
[6977] | 64 | |
---|