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