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

Last change on this file since 13807 was 7132, checked in by Henrik Bettermann, 13 years ago

minor

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