source: main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/utils/utils.py @ 16747

Last change on this file since 16747 was 16747, checked in by Henrik Bettermann, 3 years ago

Add PG Application Fee.

  • Property svn:keywords set to Id
File size: 9.9 KB
Line 
1## $Id: utils.py 16747 2022-01-11 08:47:44Z 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"""
20
21from copy import deepcopy
22from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
23
24class CustomKofaUtils(NigeriaKofaUtils):
25    """A collection of methods subject to customization.
26    """
27
28    PAYMENT_CATEGORIES = {
29        'schoolfee': 'Tuition Plus (total amount)',
30        'schoolfee40': 'Tuition Plus (40% - 1st instalment)',
31        'secondinstal': 'Tuition Plus (60% - 2nd instalment)',
32        'clearance': 'Acceptance Fee',
33        'grad_clearance': 'Clearance Fee',
34        'registration': 'Registration Fee',
35        #'bed_allocation': 'Bed Allocation Fee',
36        #'hostel_maintenance': 'Accommodation',
37        #'transfer': 'Transfer Fee',
38        #'gown': 'Gown Hire Fee',
39        'application': 'Application Fee',
40        'pg_application': 'PG Application Fee',
41        'app_balance': 'Application Fee Balance',
42        'transcript': 'Transcript Fee',
43        'transcript_local': 'Transcript Fee Local',
44        'transcript_overseas': 'Transcript Fee Oversea',
45        'late_registration': 'Late Registration Fee',
46        'science': 'Science Bench Fee',
47        'clinical': 'Clinical Fee (Medical Students)',
48        'develop': 'Development Fee',
49        'municipal_fresh': 'Municipal Fee (Fresh Students)',
50        'municipal_returning': 'Municipal Fee (Returning Students)',
51        'alumni': 'Alumni Fee',
52        'conv': 'Convocation Fee',
53        'matric': 'Matriculation Fee',
54        'waecneco': 'WAEC/NECO Verification',
55        'jambver': 'JAMB Verification',
56        'book': 'Book Deposit',
57        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
58        'pharmlab': 'Pharmacy Lab Support Fee',
59        'lo_ident': 'Letter of Identification Fee',
60        'change_course': 'Change of Course Fee',
61        'make_up': 'Make-up Fee',
62        'iuits': 'IUITS Fee',
63        'fine': 'Fine',
64        'combi': 'Combi Payment',
65        'resit1': '1 Make-Up Examination Course',
66        'resit2': '2 Make-Up Examination Courses',
67        'resit3': '3 Make-Up Examination Courses',
68        'resit4': '4 Make-Up Examination Courses',
69        'resit5': '5 Make-Up Examination Courses',
70        'resit6': '6 Make-Up Examination Course',
71        'resit7': '7 Make-Up Examination Courses',
72        'resit8': '8 Make-Up Examination Courses',
73        'resit9': '9 Make-Up Examination Courses',
74        'makeup_admin': 'Make-Up Registration Fee',
75        'id_card': 'Student ID Card',
76        'required_combi': 'Required Combi Payment',
77        'pg_other': 'PG Other Charges',
78        'jupeb_form':'JUPEB Form Fee',
79        'jupeb_acc':'JUPEB Acceptance Fee',
80        'jupeb_reg':'JUPEB Administrative Fee',
81        'jupeb_sci':'JUPEB Tuition (Science)',
82        'jupeb_arts':'JUPEB Tuition (Arts)',
83        'jupeb_hostel':'JUPEB Accommodation (optional)',
84        'brought_fwd': 'Balance Brought Forward',
85        }
86
87    SELECTABLE_PAYMENT_CATEGORIES = {
88        'schoolfee': 'Tuition Plus (total amount)',
89        'schoolfee40': 'Tuition Plus (40% - 1st instalment)',
90        'secondinstal': 'Tuition Plus (60% - 2nd instalment)',
91        'registration': 'Registration Fee',
92        'clearance': 'Acceptance Fee',
93        'grad_clearance': 'Clearance Fee',
94        #'bed_allocation': 'Bed Allocation Fee',
95        #'hostel_maintenance': 'Accommodation',
96        #'transfer': 'Transfer Fee',
97        #'gown': 'Gown Hire Fee',
98        'application': 'Application Fee',
99        'pg_application': 'PG Application Fee',
100        #'app_balance': 'Application Fee Balance',
101        'transcript_local': 'Transcript Fee (Local Students)',
102        'transcript_overseas': 'Transcript Fee (Oversea Students)',
103        'late_registration': 'Late Registration Fee',
104        'science': 'Science Bench Fee',
105        'clinical': 'Clinical Fee (Medical Students)',
106        'develop': 'Development Fee',
107        'municipal_fresh': 'Municipal Fee (Fresh Students)',
108        'municipal_returning': 'Municipal Fee (Returning Students)',
109        'alumni': 'Alumni Fee',
110        'conv': 'Convocation Fee',
111        'matric': 'Matriculation Fee',
112        'waecneco': 'WAEC/NECO Verification',
113        'jambver': 'JAMB Verification',
114        'book': 'Book Deposit',
115        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
116        'pharmlab': 'Pharmacy Lab Support Fee',
117        'lo_ident': 'Letter of Identification Fee',
118        'change_course': 'Change of Course Fee',
119        #'make_up': 'Make-up Fee',
120        'iuits': 'IUITS Fee',
121        'fine': 'Fine',
122        'combi': 'Combi Payment',
123        'resit1': '1 Make-Up Examination Course',
124        'resit2': '2 Make-Up Examination Courses',
125        'resit3': '3 Make-Up Examination Courses',
126        'resit4': '4 Make-Up Examination Courses',
127        'resit5': '5 Make-Up Examination Courses',
128        'resit6': '6 Make-Up Examination Course',
129        'resit7': '7 Make-Up Examination Courses',
130        'resit8': '8 Make-Up Examination Courses',
131        'resit9': '9 Make-Up Examination Courses',
132        'makeup_admin': 'Make-Up Registration Fee',
133        'id_card': 'Student ID Card',
134        'required_combi': 'Required Combi Payment',
135        'pg_other': 'PG Other Charges',
136        #'jupeb_form':'JUPEB Form Fee',
137        #'jupeb_acc':'JUPEB Acceptance Fee',
138        #'jupeb_reg':'JUPEB Administrative Fee',
139        'jupeb_sci':'JUPEB Tuition (Science)',
140        'jupeb_arts':'JUPEB Tuition (Arts)',
141        'jupeb_hostel':'JUPEB Accommodation (optional)',
142        }
143
144    def selectable_payment_categories(self, student):
145        return self.SELECTABLE_PAYMENT_CATEGORIES
146
147    PREVIOUS_PAYMENT_CATEGORIES = {
148        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
149        'registration': 'Registration Fee',
150        'clearance': 'Acceptance Fee',
151        'grad_clearance': 'Clearance Fee',
152        'application': 'Application Fee',
153        'late_registration': 'Late Registration Fee',
154        'science': 'Science Bench Fee',
155        'clinical': 'Clinical Fee (Medical Students)',
156        'develop': 'Development Fee',
157        'municipal_fresh': 'Municipal Fee (Fresh Students)',
158        'municipal_returning': 'Municipal Fee (Returning Students)',
159        'alumni': 'Alumni Fee',
160        'conv': 'Convocation Fee',
161        'matric': 'Matriculation Fee',
162        'waecneco': 'WAEC/NECO Verification',
163        'jambver': 'JAMB Verification',
164        'book': 'Book Deposit',
165        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
166        'pharmlab': 'Pharmacy Lab Support Fee',
167        'lo_ident': 'Letter of Identification Fee',
168        'change_course': 'Change of Course Fee',
169        'make_up': 'Make-up Fee',
170        'iuits': 'IUITS Fee',
171        'fine': 'Fine',
172        'id_card': 'Student ID Card',
173        'required_combi': 'Required Combi Payment',
174        'pg_other': 'PG Other Charges',
175        #'jupeb_form':'JUPEB Form Fee',
176        #'jupeb_acc':'JUPEB Acceptance Fee',
177        #'jupeb_reg':'JUPEB Administrative Fee',
178        'jupeb_sci':'JUPEB Tuition (Science)',
179        'jupeb_arts':'JUPEB Tuition (Arts)',
180        'jupeb_hostel':'JUPEB Accommodation (optional)',
181        }
182
183    COMBI_PAYMENT_CATEGORIES = {
184        'registration': 'Registration Fee',
185        'grad_clearance': 'Clearance Fee',
186        'late_registration': 'Late Registration Fee',
187        'science': 'Science Bench Fee',
188        'clinical': 'Clinical Fee (Medical Students)',
189        'develop': 'Development Fee',
190        'municipal_fresh': 'Municipal Fee (Fresh Students)',
191        'municipal_returning': 'Municipal Fee (Returning Students)',
192        'alumni': 'Alumni Fee',
193        'conv': 'Convocation Fee',
194        'matric': 'Matriculation Fee',
195        'waecneco': 'WAEC/NECO Verification',
196        'jambver': 'JAMB Verification',
197        'book': 'Book Deposit',
198        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
199        'pharmlab': 'Pharmacy Lab Support Fee',
200        'lo_ident': 'Letter of Identification Fee',
201        'change_course': 'Change of Course Fee',
202        'make_up': 'Make-up Fee',
203        'iuits': 'IUITS Fee',
204        'fine': 'Fine',
205        'id_card': 'Student ID Card',
206        'pg_other': 'PG Other Charges',
207        #'jupeb_form':'JUPEB Form Fee',
208        #'jupeb_acc':'JUPEB Acceptance Fee',
209        #'jupeb_reg':'JUPEB Administrative Fee',
210        'jupeb_sci':'JUPEB Tuition (Science)',
211        'jupeb_arts':'JUPEB Tuition (Arts)',
212        'jupeb_hostel':'JUPEB Accommodation (optional)',
213        }
214
215    BALANCE_PAYMENT_CATEGORIES = {
216        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
217        }
218
219    PAYMENT_OPTIONS = {
220        'first': 'First Bank Debit Card',
221        'access': 'Access Bank Debit Card',
222        'zenith': 'Zenith Bank Debit Card',
223        'other': 'Other Bank Debit Card',
224        }
225
226    APP_CATS_DICT = {
227        'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
228        'no': 'No Application',
229        'pg': 'Postgraduate Programmes',
230        'pg2': 'Postgraduate Programmes 2',
231        'pgphd': 'Postgraduate PhD/MPhil',
232        'pre': 'Pre-Degree Studies',
233        'pt': 'Part-Time Degree Programmes',
234        'ut': 'Undergraduate Programmes',
235        'conv': 'HND to BSc Conversion',
236        }
237
238    #: Maximum size in Bytes of passport images in the applicants and
239    #: students section
240    MAX_PASSPORT_SIZE = 250 * 1024
Note: See TracBrowser for help on using the repository browser.