source: WAeUP_SRP/fceokene/waeup_custom/getSchoolFee.py @ 2726

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

see ticket #28

File size: 1.1 KB
RevLine 
[2644]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':
22    if brain.department in ARTS:
23        d['all'] = 11520
[2646]24    else:
[2644]25        d['all'] = 11995
26elif str(brain.level) == '200':
27    if brain.department in ARTS:
[2646]28        d['all'] = 10570
29    else:
[2644]30        d['all'] = 11045
31elif str(brain.level) == '300':
32    if brain.department in ARTS:
33        d['all'] = 10570
[2646]34    else:
35        d['all'] = 11045
36else:
37    d['all'] = 0
38
39
[2644]40next_info = context.getNextInfo(brain)
41next_session_str = next_info['next_session_str']
42d['description'] = "School Fee for Session %s" % next_session_str
[2646]43
[2644]44return d
45
Note: See TracBrowser for help on using the repository browser.