source: main/waeup.aaue/trunk/src/waeup/aaue/utils/utils.py @ 13403

Last change on this file since 13403 was 13403, checked in by Henrik Bettermann, 9 years ago

Rename school function.

Rename payment categories.

Add test to produce payment pdf slip.

  • Property svn:keywords set to Id
File size: 4.8 KB
Line 
1## $Id: utils.py 13403 2015-11-07 06:16:00Z henrik $
2##
3## Copyright (C) 2012 Uli Fouquet & Henrik Bettermann
4## This program is free software; you can redistribute it and/or modify
5## it under the terms of the GNU General Public License as published by
6## the Free Software Foundation; either version 2 of the License, or
7## (at your option) any later version.
8##
9## This program is distributed in the hope that it will be useful,
10## but WITHOUT ANY WARRANTY; without even the implied warranty of
11## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12## GNU General Public License for more details.
13##
14## You should have received a copy of the GNU General Public License
15## along with this program; if not, write to the Free Software
16## Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
17##
18"""Customize general helper utilities for Kofa.
19"""
20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
21
22class CustomKofaUtils(NigeriaKofaUtils):
23    """A collection of methods subject to customization.
24    """
25
26    PREFERRED_LANGUAGES_DICT = {
27        }
28
29    PAYMENT_CATEGORIES = {
30        'schoolfee': 'School Fee',
31        'schoolfee_1': 'School Fee 1st instalment',
32        'schoolfee_2': 'School Fee 2nd instalment',
33        'schoolfee_incl': 'School Fee plus',
34        'clearance': 'Acceptance Fee',
35        'clearance_incl': 'Acceptance Fee plus',
36        'hostel_maintenance': 'Hostel Maintenance Fee',
37        'application': 'Application Fee',
38        'gown': 'Gown Hire Fee',
39        'bed_allocation': 'Bed Allocation Fee',
40        'transfer': 'Transfer Fee',
41        'transcript': 'Transcript Fee',
42        'late_registration': 'Late Course Registration Fee',
43        'welfare': 'Student Welfare Assurance Fee',
44        'union': 'Students\' Union Dues',
45        'lapel': 'Lapel/File Fee',
46        'matric_gown': 'Matriculation Gown Fee',
47        'concessional': 'Concessional Fee',
48        'medical': 'Medical Student Acceptance Fee',
49        }
50
51    SELECTABLE_PAYMENT_CATEGORIES = {
52        'schoolfee': 'School Fee without additional fees',
53        #'schoolfee_1': 'School Fee 1st instalment',
54        #'schoolfee_2': 'School Fee 2nd instalment',
55        'schoolfee_incl': 'School Fee plus Students\' Union and Welfare Assurance fees',
56        'clearance': 'Acceptance Fee without additional fees',
57        'clearance_incl': 'Acceptance Fee plus Matric Gown and Lapel/File fees',
58        'hostel_maintenance': 'Hostel Maintenance Fee',
59        'application': 'Application Fee',
60        #'gown': 'Gown Hire Fee',
61        #'bed_allocation': 'Bed Allocation Fee',
62        #'transfer': 'Transfer Fee',
63        'transcript': 'Transcript Fee',
64        'late_registration': 'Late Course Registration Fee',
65        'welfare': 'Student Welfare Assurance Fee',
66        'union': 'Students\' Union Dues',
67        'lapel': 'Lapel/File Fee',
68        'matric_gown': 'Matriculation Gown Fee',
69        'concessional': 'Concessional Fee',
70        'medical': 'Medical Student Acceptance Fee',
71        }
72
73    APP_CATS_DICT = {
74        'basic': 'PUTME, PUDE, PCE, PRENCE',
75        'no': 'No Application',
76        'pg_ft': 'Postgraduate Full-Time',
77        'pg_pt': 'Postgraduate Part-Time',
78        'cest': 'Part-Time, Diploma, Certificate',
79        'found': 'Foundation',
80        'ptee': 'Part-Time Entrance Examination',
81        }
82
83    STUDY_MODES_DICT = {
84        'ug_ft': 'Undergraduate Full Time',
85        'ug_pt': 'Undergraduate Part Time',
86        'de_ft': 'Direct Entry Full Time',
87        'de_pt': 'Direct Entry Part Time',
88        'dp_pt': 'Diploma Part Time',
89        'dp_ft': 'Diploma Full Time',
90        'pg_ft': 'Postgraduate Full Time',
91        'pg_pt': 'Postgraduate Part Time',
92        'found': 'Foundation',
93        }
94
95    VERDICTS_DICT = {
96        '0': 'not yet',
97        'A': 'Successful student',
98        'B': 'Student with carryover courses',
99        'C': 'Student on probation',
100        #'D': 'Withdrawn from the faculty',
101        #'E': 'Student who were previously on probation',
102        #'F': 'Medical case',
103        #'G': 'Absent from examination',
104        #'H': 'Withheld results',
105        #'I': 'Expelled/rusticated/suspended student',
106        #'J': 'Temporary withdrawn from the university',
107        #'K': 'Unregistered student',
108        #'L': 'Referred student',
109        #'M': 'Reinstatement',
110        #'N': 'Student on transfer',
111        #'O': 'NCE-III repeater',
112        #'Y': 'No previous verdict',
113        #'X': 'New 300 level student',
114        'Z': 'Successful student (provisional)',
115        #'A1': 'First Class',
116        #'A2': 'Second Class Upper',
117        #'A3': 'Second Class Lower',
118        #'A4': 'Third Class',
119        #'A5': 'Pass',
120        #'A6': 'Distinction',
121        #'A7': 'Credit',
122        #'A8': 'Merit',
123        'NEOR': 'No evidence of registration',
124        'NEOV': 'No evidence of verification',
125        'FRNS': 'Faculty requirements not satisfied',
126        }
Note: See TracBrowser for help on using the repository browser.