Last change
on this file since 3808 was
3800,
checked in by Henrik Bettermann, 16 years ago
|
fix fee for DE fresh students
|
File size:
1.0 KB
|
Line | |
---|
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': |
---|
21 | d['all'] = 70000 |
---|
22 | # fresh |
---|
23 | elif brain.review_state == 'cleared_and_validated': |
---|
24 | if brain.lga == 'foreigner': |
---|
25 | d['all'] = 131500 |
---|
26 | else: |
---|
27 | d['all'] = 41500 |
---|
28 | # returning |
---|
29 | elif brain.review_state == 'returning': |
---|
30 | if brain.lga == 'foreigner': |
---|
31 | d['all'] = 109500 |
---|
32 | else: |
---|
33 | d['all'] = 19500 |
---|
34 | else: |
---|
35 | d['all'] = 0 |
---|
36 | else: |
---|
37 | d['all'] = 0 |
---|
38 | |
---|
39 | |
---|
40 | next_info = context.getNextInfo(brain) |
---|
41 | next_session_str = next_info['next_session_str'] |
---|
42 | d['next_session_id'] = next_info['next_session_id'] |
---|
43 | d['description'] = "School Fee for Session %s" % next_session_str |
---|
44 | |
---|
45 | return d |
---|
46 | |
---|
Note: See
TracBrowser for help on using the repository browser.