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

Last change on this file since 15444 was 15444, checked in by Henrik Bettermann, 5 years ago

Temporarily disable filter.

  • Property svn:keywords set to Id
File size: 5.5 KB
Line 
1## $Id: utils.py 15444 2019-05-30 10:49:59Z 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 Fee',
62        'conv_nd': 'ND Convocation Fee',
63        'conv_hnd': 'HND Convocation Fee',
64        }
65
66    SELECTABLE_PAYMENT_CATEGORIES = {
67        'schoolfee': 'Tuition/Exams Fee',
68        'clearance': 'Acceptance Fee',
69        'bed_allocation': 'Accommodation Booking Fee',
70        'hostel_maintenance': 'Hostel Maintenance Fee',
71        'application': 'Application Fee',
72        'ict_entre': 'ICT and Entrepreneur Fee',
73        'logbook_combo': 'Logbook Combo Fee',
74        'siwess_combo': 'SIWESS Combo Fee',
75        'transcript': 'Transcript Fee',
76        'certificate': 'Certificate Fee',
77        'certificate_confirm': 'Certificate Confirmation Fee',
78        'late_registration': 'Late Course Registration Fee',
79        'final_clearance': 'Final Clearance Fee',
80        'union': 'Student Union Dues',
81        'admission_checking': 'Admission Checking Fee',
82        'medical': 'Medical Fee',
83        'conv_nd': 'ND Convocation Fee',
84        'conv_hnd': 'HND Convocation Fee',
85        }
86
87    def selectable_payment_categories(self, student):
88        spc = self.SELECTABLE_PAYMENT_CATEGORIES
89        return spc
90        if not student.is_fresh:
91            del spc['application']
92            del spc['admission_checking']
93            del spc['clearance']
94        return spc
95
96    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
97
98    BALANCE_PAYMENT_CATEGORIES = {
99        'schoolfee': 'Tuition/Exams Fee',
100        'ict_entre': 'ICT and Entrepreneur Fee',
101        'certificate_confirm': 'Certificate Confirmation Fee',
102        'final_clearance': 'Final Clearance Fee',
103        }
104
105    REPORTABLE_PAYMENT_CATEGORIES = {
106        'schoolfee': 'Tuition Exams Fee',
107        'clearance': 'Accept. Fee',
108        'hostel_maintenance': 'Hostel Maint. Fee',
109        'ict_entre': 'ICT Entrepr. Fee',
110        'logbook_combo': 'Logbook Combo Fee',
111        'siwess_combo': 'SIWESS Combo Fee',
112        'certificate': 'Cert. Fee',
113        'certificate_confirm': 'Cert. Confirm. Fee',
114        'late_registration': 'Late Course Registr. Fee',
115        'final_clearance': 'Final Clearance Fee',
116        'union': 'Student Union Dues',
117        'medical': 'Medical Fee',
118        }
119
120    SPECIAL_APP_DICT = {
121        'conv_nd': 'Convocation ND',
122        'conv_hnd': 'Convocation HND',
123        }
124
125    STUDY_MODES_DICT = {
126        'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)',
127        'nd_ft': 'National Diploma Full-Time',
128        'nd_pt': 'National Diploma Part-Time',
129        'nd_we': 'National Diploma Weekend',
130        'hnd_ft': 'Higher National Diploma Full-Time',
131        'hnd_pt': 'Higher National Diploma Part-Time',
132        'hnd_we': 'Higher National Diploma Weekend',
133        'ct': 'Certificate',
134        'pre': 'Pre-Degree',
135        'transfer': 'Transfer',
136        'no': 'no application',
137        }
138
139    MODE_GROUPS = {
140        'All': ('all',),
141        'Undergraduate Full-Time': ('hnd_ft', 'nd_ft'),
142        'Undergraduate Part-Time': ('hnd_pt', 'nd_pt'),
143        #'Postgraduate Full-Time': ('pg_ft',),
144        #'Postgraduate Part-Time': ('pg_pt',),
145        }
Note: See TracBrowser for help on using the repository browser.