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,instalment='0'
|
---|
8 | ##title=
|
---|
9 | ##
|
---|
10 | # $Id: getSchoolFee.py 2534 2007-11-05 06:37:12Z henrik $
|
---|
11 | """
|
---|
12 | return SchoolFee
|
---|
13 | """
|
---|
14 |
|
---|
15 | d = {}
|
---|
16 |
|
---|
17 | if brain.mode == 'ug_sw': # ug_sw students payment does not depend on the current session
|
---|
18 | if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated':
|
---|
19 | d['all'] = 45000
|
---|
20 | elif str(brain.level) in ('100',): #200 returning students
|
---|
21 | d['all'] = 45000
|
---|
22 | else:
|
---|
23 | d['all'] = 35000
|
---|
24 | elif brain.mode == 'pg_sw':
|
---|
25 | if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': # only 600 fresh
|
---|
26 | d['all'] = 65000
|
---|
27 | else:
|
---|
28 | d['all'] = 80000
|
---|
29 | elif brain.session in ('06','07',):
|
---|
30 | if brain.mode == 'dp_pt':
|
---|
31 | if str(brain.level) in ('100',) and brain.review_state == 'cleared_and_validated': # only 100 fresh
|
---|
32 | d['all'] = 40000
|
---|
33 | else:
|
---|
34 | d['all'] = 35000
|
---|
35 | elif brain.mode == 'ug_pt':
|
---|
36 | if str(brain.level) in ('100','200',) and brain.review_state == 'cleared_and_validated': # only 100 or 200 fresh
|
---|
37 | d['all'] = 50000
|
---|
38 | else:
|
---|
39 | d['all'] = 45000
|
---|
40 | elif brain.mode == 'pg_pt':
|
---|
41 | if str(brain.level) == '600' and brain.review_state == 'cleared_and_validated': # only 600 fresh
|
---|
42 | d['all'] = 60000
|
---|
43 | elif str(brain.level) == '600' and brain.verdict == 'C': # 600 repeaters
|
---|
44 | d['all'] = 55000
|
---|
45 | elif str(brain.level) == '700' and brain.review_state == 'cleared_and_validated': # only 700 fresh
|
---|
46 | d['all'] = 75000
|
---|
47 | elif str(brain.level) == '600': # going to register for 700
|
---|
48 | d['all'] = 75000
|
---|
49 | else:
|
---|
50 | d['all'] = 65000
|
---|
51 | else:
|
---|
52 | d['all'] = 0
|
---|
53 | elif brain.session in ('08',):
|
---|
54 | if instalment == '1':
|
---|
55 | d['all'] = 8888888 # for testing
|
---|
56 | d['instalment'] = '1'
|
---|
57 | elif instalment == '2':
|
---|
58 | d['all'] = 9999999 # for testing
|
---|
59 | d['instalment'] = '2'
|
---|
60 | else:
|
---|
61 | d['all'] = 0
|
---|
62 | else:
|
---|
63 | d['all'] = 0
|
---|
64 |
|
---|
65 |
|
---|
66 | next_info = context.getNextInfo(brain)
|
---|
67 | next_session_str = next_info['next_session_str']
|
---|
68 | d['next_session_id'] = next_info['next_session_id']
|
---|
69 | d['description'] = "School Fee for Session %s" % next_session_str
|
---|
70 |
|
---|
71 | return d
|
---|