source: WAeUP_SRP/trunk/skins/waeup_futminna/getSchoolFee.py @ 4008

Last change on this file since 4008 was 4005, checked in by Henrik Bettermann, 16 years ago

see ticket futminna 44

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