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

Last change on this file since 17635 was 17635, checked in by Henrik Bettermann, 12 months ago

New fees.

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