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 | |
---|
| 15 | |
---|
| 16 | d = {} |
---|
| 17 | |
---|
| 18 | if brain.mode.endswith('_ft'): |
---|
| 19 | # fresh remedial |
---|
| 20 | if str(brain.level) == '000' and brain.review_state == 'cleared_and_validated': |
---|
[4010] | 21 | if brain.entry_mode == 'rmd_ft': |
---|
| 22 | d['all'] = 80200 |
---|
| 23 | else: |
---|
[3825] | 24 | d['all'] = 74200 |
---|
[4010] | 25 | |
---|
[3780] | 26 | # fresh |
---|
[3800] | 27 | elif brain.review_state == 'cleared_and_validated': |
---|
[3993] | 28 | if brain.mode == 'jm_ft': |
---|
[4005] | 29 | d['all'] = 72700 |
---|
[3993] | 30 | elif brain.lga == 'foreigner': |
---|
[3836] | 31 | d['all'] = 131500 + 5000 |
---|
[3780] | 32 | else: |
---|
[3836] | 33 | d['all'] = 41500 + 5000 |
---|
[3780] | 34 | # returning |
---|
| 35 | elif brain.review_state == 'returning': |
---|
[3993] | 36 | if brain.mode == 'jm_ft': |
---|
[4005] | 37 | d['all'] = 32500 |
---|
[3993] | 38 | elif brain.lga == 'foreigner': |
---|
[3780] | 39 | d['all'] = 109500 |
---|
| 40 | else: |
---|
[3836] | 41 | d['all'] = 19500 + 5000 |
---|
[3780] | 42 | else: |
---|
| 43 | d['all'] = 0 |
---|
| 44 | else: |
---|
| 45 | d['all'] = 0 |
---|
| 46 | |
---|
| 47 | |
---|
| 48 | next_info = context.getNextInfo(brain) |
---|
| 49 | next_session_str = next_info['next_session_str'] |
---|
| 50 | d['next_session_id'] = next_info['next_session_id'] |
---|
| 51 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
| 52 | |
---|
| 53 | return d |
---|
| 54 | |
---|
Note: See
TracBrowser for help on using the repository browser.