Last change
on this file since 5606 was
5590,
checked in by Henrik Bettermann, 14 years ago
|
Do not charge late registration fee at FUTMinna.
|
File size:
1.4 KB
|
Rev | Line | |
---|
[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 | |
---|
[5590] | 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': |
---|
| 23 | d['all'] = 80200 |
---|
| 24 | else: |
---|
[3825] | 25 | d['all'] = 74200 |
---|
[4010] | 26 | |
---|
[3780] | 27 | # fresh |
---|
[3800] | 28 | elif brain.review_state == 'cleared_and_validated': |
---|
[3993] | 29 | if brain.mode == 'jm_ft': |
---|
[5036] | 30 | d['all'] = 72700 + late_registration_fee |
---|
[3993] | 31 | elif brain.lga == 'foreigner': |
---|
[5036] | 32 | d['all'] = 131500 + late_registration_fee |
---|
[3780] | 33 | else: |
---|
[5036] | 34 | d['all'] = 41500 + late_registration_fee |
---|
[3780] | 35 | # returning |
---|
| 36 | elif brain.review_state == 'returning': |
---|
[3993] | 37 | if brain.mode == 'jm_ft': |
---|
[5021] | 38 | d['all'] = 32500 + late_registration_fee |
---|
[3993] | 39 | elif brain.lga == 'foreigner': |
---|
[5021] | 40 | d['all'] = 109500 + late_registration_fee |
---|
[3780] | 41 | else: |
---|
[5021] | 42 | d['all'] = 19500 + late_registration_fee |
---|
[3780] | 43 | else: |
---|
| 44 | d['all'] = 0 |
---|
| 45 | else: |
---|
| 46 | d['all'] = 0 |
---|
| 47 | |
---|
| 48 | |
---|
| 49 | next_info = context.getNextInfo(brain) |
---|
| 50 | next_session_str = next_info['next_session_str'] |
---|
| 51 | d['next_session_id'] = next_info['next_session_id'] |
---|
| 52 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
| 53 | |
---|
| 54 | return d |
---|
Note: See
TracBrowser for help on using the repository browser.