source: WAeUP_SRP/aaua/waeup_custom/getSchoolFee.py @ 3546

Last change on this file since 3546 was 3073, checked in by Henrik Bettermann, 17 years ago

add school fee for repeaters (= spillover)

File size: 1.5 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
16ARTS = ('CRS','ISS','HIS','MUS','ECO','GEO','POL','SOS','CCA','ECU','THA','GED','GSE','PES','SPC','ENG ','FRE','ARB','HAU','IGB','YOR','FAA')
17
18# SCS = ('BIO','CHE','HED','MAT','PED','PHY ','CSC','ISC','PHE','AGE','BED','HEC','TED')
19
20d = {}
21if str(brain.level) == '100' and brain.review_state == 'cleared_and_validated':
22    if brain.department in ARTS:
23        d['all'] = 11520
24    else:
25        d['all'] = 11995
26elif str(brain.level) == '000' and brain.review_state == 'cleared_and_validated':
27    if brain.department in ARTS:
28        d['all'] = 14400
29    else:
30        d['all'] = 14900
31elif str(brain.level) == '100' and brain.review_state == 'returning':
32    if brain.department in ARTS:
33        d['all'] = 10570
34    else:
35        d['all'] = 11045
36elif str(brain.level) in ('200','210','220'):
37    if brain.department in ARTS:
38        d['all'] = 10570
39    else:
40        d['all'] = 11045
41# repeaters = spillover
42elif str(brain.level) in ('300','310','320'):
43    if brain.department in ARTS:
44        d['all'] = 8670
45    else:
46        d['all'] = 9145
47else:
48    d['all'] = 0
49
50
51next_info = context.getNextInfo(brain)
52next_session_str = next_info['next_session_str']
53d['next_session_id'] = next_info['next_session_id']
54d['description'] = "School Fee for Session %s" % next_session_str
55
56return d
57
Note: See TracBrowser for help on using the repository browser.