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

Last change on this file since 17940 was 17925, checked in by Henrik Bettermann, 3 months ago

Iggara Campus Programmes

  • Property svn:keywords set to Id
File size: 6.7 KB
Line 
1## $Id: utils.py 17925 2024-09-13 10:08:18Z 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    APP_CATS_DICT = {
28        'basic': 'Basic Application',
29        'no': 'no application',
30        'ft': 'Full Time Courses',
31        'pt': 'Part Time Courses',
32        'pre': 'Pre-Degree Studies',
33        'ct': 'Certificate Programmes',
34        'ndft': 'National Diploma Full-Time Programmes',
35        'ndpt': 'National Diploma Part-Time Programmes',
36        'ndwe': 'National Diploma Weekend Programmes',
37        'nde': 'National Diploma Part-Time Evening Programmes',
38        'hndft': 'Higher National Diploma Full-Time Programmes',
39        'hndpt': 'Higher National Diploma Part-Time Programmes',
40        'hndwe': 'Higher National Diploma Weekend Programmes',
41        'hnde': 'Higher National Diploma Part-Time Evening Programmes',
42        'iggara': 'Iggara Campus Programmes',
43
44        }
45
46    PAYMENT_CATEGORIES = {
47        'schoolfee': 'Tuition/Exams Fee',
48        'clearance': 'Acceptance Fee',
49        'bed_allocation': 'Accommodation Booking Fee',
50        'hostel_maintenance': 'Hostel Maintenance Fee',
51        'application': 'Application Fee',
52        'ict_entre': 'ICT and Entrepreneur Fee',
53        'logbook_combo': 'Logbook Combo Fee',
54        'siwess_combo': 'SIWESS Combo Fee',
55        'transcript': 'Transcript Fee',
56        'certificate': 'Certificate Fee',
57        'certificate_confirm': 'Certificate Confirmation Fee',
58        'late_registration': 'Late Course Registration Fee',
59        'final_clearance': 'Final Clearance Fee',
60        'union': 'Student Union Dues',
61        'admission_checking': 'Admission Checking Fee',
62        'medical': 'Medical Laboratory Test Fee',
63        'conv_nd': 'Convocation Fee ND',
64        'conv_hnd': 'Convocation Fee HND',
65        'nhis': 'TISHIP Fee',
66        'coc': 'Change of Course Fee',
67        'damages': 'Damages Fee',
68        'project_bind': 'Project Binding Fee',
69        'maintenance':'Maintenance and Utility Fees',
70        'cyber': 'Cyber Security',
71        'ispon': 'ISPON Safety',
72        'indigene': 'Non-State Indigene Fee',
73        'develop': 'Development Fee',
74        'sport': 'Sport Development Fee',
75        'gown': 'Matriculation Gown Fee',
76        'global_practics': 'Global Practics Fee',
77        }
78
79    SELECTABLE_PAYMENT_CATEGORIES = {
80        'schoolfee': 'Tuition/Exams Fee',
81        'clearance': 'Acceptance Fee',
82        'bed_allocation': 'Accommodation Booking Fee',
83        'hostel_maintenance': 'Hostel Maintenance Fee',
84        'application': 'Application Fee',
85        'ict_entre': 'ICT and Entrepreneur Fee',
86        'logbook_combo': 'Logbook Combo Fee',
87        'siwess_combo': 'SIWESS Combo Fee',
88        #'transcript': 'Transcript Fee',
89        'certificate': 'Certificate Fee',
90        'certificate_confirm': 'Certificate Confirmation Fee',
91        'late_registration': 'Late Course Registration Fee',
92        'final_clearance': 'Final Clearance Fee',
93        'union': 'Student Union Dues',
94        'admission_checking': 'Admission Checking Fee',
95        'medical': 'Medical Laboratory Test Fee',
96        'conv_nd': 'Convocation Fee ND',
97        'conv_hnd': 'Convocation Fee HND',
98        #'nhis': 'TISHIP Fee',
99        'coc': 'Change of Course Fee',
100        'damages': 'Damages Fee',
101        'project_bind': 'Project Binding Fee',
102        'maintenance':'Maintenance and Utility Fees',
103        'cyber': 'Cyber Security',
104        'ispon': 'ISPON Safety',
105        'indigene': 'Non-State Indigene Fee',
106        'develop': 'Development Fee',
107        'sport': 'Sport Development Fee',
108        'gown': 'Matriculation Gown Fee',
109        'global_practics': 'Global Practics Fee',
110        }
111
112    def selectable_payment_categories(self, student):
113        spc = deepcopy(self.SELECTABLE_PAYMENT_CATEGORIES)
114        if not student.is_fresh:
115            del spc['application']
116            del spc['admission_checking']
117            del spc['clearance']
118        if student.current_mode == 'hnd_ft':
119            del spc['logbook_combo']
120        return spc
121
122    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
123
124    BALANCE_PAYMENT_CATEGORIES = {
125        'schoolfee': 'Tuition/Exams Fee',
126        'ict_entre': 'ICT and Entrepreneur Fee',
127        'certificate_confirm': 'Certificate Confirmation Fee',
128        'final_clearance': 'Final Clearance Fee',
129        }
130
131    REPORTABLE_PAYMENT_CATEGORIES = {
132        'schoolfee': 'Tuition Exams Fee',
133        'clearance': 'Accept. Fee',
134        'hostel_maintenance': 'Hostel Maint. Fee',
135        'ict_entre': 'ICT Entrepr. Fee',
136        'logbook_combo': 'Logbook Combo Fee',
137        'siwess_combo': 'SIWESS Combo Fee',
138        'certificate': 'Cert. Fee',
139        'certificate_confirm': 'Cert. Confirm. Fee',
140        'late_registration': 'Late Course Registr. Fee',
141        'final_clearance': 'Final Clearance Fee',
142        'union': 'Student Union Dues',
143        'medical': 'Medical Laboratory Test Fee',
144        }
145
146    SPECIAL_APP_DICT = {
147        'conv_nd': 'Convocation ND',
148        'conv_hnd': 'Convocation HND',
149        }
150
151    STUDY_MODES_DICT = {
152        'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)',
153        'nd_ft': 'National Diploma Full-Time',
154        'nd_pt': 'National Diploma Part-Time',
155        'nd_we': 'National Diploma Weekend',
156        'hnd_ft': 'Higher National Diploma Full-Time',
157        'hnd_pt': 'Higher National Diploma Part-Time',
158        'hnd_we': 'Higher National Diploma Weekend',
159        'ct': 'Certificate',
160        'pre': 'Pre-Degree',
161        'transfer': 'Transfer',
162        'no': 'no application',
163        }
164
165    MODE_GROUPS = {
166        'All': ('all',),
167        'National Diploma Full-Time': ('nd_ft',),
168        'National Diploma Part-Time': ('nd_pt',),
169        'Higher National Diploma Full-Time': ('hnd_ft',),
170        'Higher National Diploma Part-Time': ('hnd_pt',),
171        'Certificate': ('ct',),
172        'Pre-Degree': ('pre',),
173        }
Note: See TracBrowser for help on using the repository browser.