source: main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py @ 15071

Last change on this file since 15071 was 15071, checked in by Henrik Bettermann, 6 years ago

Add new payment categories.

  • Property svn:keywords set to Id
File size: 4.3 KB
Line 
1## $Id: utils.py 15071 2018-06-30 06:18:27Z 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 copy import deepcopy
21from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
22
23class CustomKofaUtils(NigeriaKofaUtils):
24    """A collection of methods subject to customization.
25    """
26
27    PAYMENT_CATEGORIES = {
28        'schoolfee': 'Tuition and Exams Fee',
29        'clearance': 'Acceptance Fee',
30        'bed_allocation': 'Accommodation Booking Fee',
31        'hostel_maintenance': 'Hostel Maintenance Fee',
32        'application': 'Application Fee',
33        'ict_entre': 'ICT and Entrepreneur Fee',
34        'logbook_combo': 'Logbook Combo Fee',
35        'siwess_combo': 'SIWESS Combo Fee',
36        'transcript': 'Transcript Fee',
37        'certificate': 'Certificate Fee',
38        'certificate_confirm': 'Certificate Confirmation Fee',
39        'late_registration': 'Late Course Registration Fee',
40        'final_clearance': 'Final Clearance Fee',
41        }
42
43    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
44
45    BALANCE_PAYMENT_CATEGORIES = {
46        'schoolfee': 'Tuition and Exams Fee',
47        'ict_entre': 'ICT and Entrepreneur Fee',
48        'certificate_confirm': 'Certificate Confirmation Fee',
49        'final_clearance': 'Final Clearance Fee',
50        }
51
52    REPORTABLE_PAYMENT_CATEGORIES = {
53        'schoolfee': 'Tuition and Exams Fee',
54        'clearance': 'Acceptance Fee',
55        #'bed_allocation': 'Accommodation Booking Fee',
56        'hostel_maintenance': 'Hostel Maintenance Fee',
57        'ict_entre': 'ICT and Entrepreneur Fee',
58        'logbook_combo': 'Logbook Combo Fee',
59        'siwess_combo': 'SIWESS Combo Fee',
60        #'transcript': 'Transcript Fee',
61        'certificate': 'Certificate Fee',
62        'certificate_confirm': 'Certificate Confirmation Fee',
63        'late_registration': 'Late Course Registration Fee',
64        'final_clearance': 'Final Clearance Fee',
65        }
66
67    STUDY_MODES_DICT = {
68        'ume_ft': 'UME Full Time',
69        'ug_ft': 'Undergraduate Full Time',
70        'ug_pt': 'Undergraduate Part Time',
71        'dp_pt': 'Diploma Part Time',
72        'ct_ft': 'Certificate Full Time',
73        'dp_ft': 'Diploma Full Time',
74        'de_ft': 'Direct Entry Full Time',
75        'de_pt': 'Direct Entry Part Time',
76        'nd_ft': 'National Diploma Full Time',
77        'nd_pt': 'National Diploma Part Time',
78        'hnd_ft': 'Higher National Diploma Full Time',
79        'hnd_pt': 'Higher National Diploma Part Time',
80        'pg_ft': 'Postgraduate Full Time',
81        'pg_pt': 'Postgraduate Part Time',
82        'pgd_ft': 'Postgraduate Diploma Full Time',
83        'pgd_pt': 'Postgraduate Diploma Part Time',
84        'special_pg_pt': 'Special Postgraduate Part Time',
85        'nce_ft': 'NCE Full Time',
86        'nce_pt': 'NCE Part Time',
87        'ug_sw': 'Undergraduate Sandwich',
88        'nce_sw': 'NCE Sandwich',
89        'jm_ft': 'Joint Matriculation Full Time',
90        'ph_ft': 'Post Higher Education Full Time',
91        'transfer_pt': 'Transfer Part Time',
92        'transfer_ft': 'Transfer Full Time',
93        'ct_pt': 'Certificate Part Time',
94        'rmd_ft': 'Remedial with deficiencies',
95        'rm_ft': 'Remedial',
96        'transfer': 'Transfer',
97        'prence': 'Pre-NCE',
98        'prend': 'Pre-ND',
99        'pce': 'PCE',
100        'pd_ft': 'Professional Diploma in Education',
101        'found': 'Foundation',
102        'no': 'no application',
103        }
104
105    MODE_GROUPS = {
106        'All': ('all',),
107        'Undergraduate Full-Time': ('ug_ft',),
108        'Undergraduate Part-Time': ('ug_pt',),
109        'Postgraduate Full-Time': ('pg_ft',),
110        'Postgraduate Part-Time': ('pg_pt',),
111        }
Note: See TracBrowser for help on using the repository browser.