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

Last change on this file since 17240 was 17126, checked in by Henrik Bettermann, 2 years ago

Disable balance payment and payments by installments for BMS students.

  • Property svn:keywords set to Id
File size: 10.0 KB
Line 
1## $Id: utils.py 17126 2022-10-12 07:57:34Z 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        spc = deepcopy(self.SELECTABLE_PAYMENT_CATEGORIES)
146        if student.depcode == 'BMS':
147            del spc['schoolfee40']
148            del spc['secondinstal']
149        return spc
150
151    PREVIOUS_PAYMENT_CATEGORIES = {
152        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
153        'registration': 'Registration Fee',
154        'clearance': 'Acceptance Fee',
155        'grad_clearance': 'Clearance Fee',
156        'application': 'Application Fee',
157        'late_registration': 'Late Registration Fee',
158        'science': 'Science Bench Fee',
159        'clinical': 'Clinical Fee (Medical Students)',
160        'develop': 'Development Fee',
161        'municipal_fresh': 'Municipal Fee (Fresh Students)',
162        'municipal_returning': 'Municipal Fee (Returning Students)',
163        'alumni': 'Alumni Fee',
164        'conv': 'Convocation Fee',
165        'matric': 'Matriculation Fee',
166        'waecneco': 'WAEC/NECO Verification',
167        'jambver': 'JAMB Verification',
168        'book': 'Book Deposit',
169        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
170        'pharmlab': 'Pharmacy Lab Support Fee',
171        'lo_ident': 'Letter of Identification Fee',
172        'change_course': 'Change of Course Fee',
173        'make_up': 'Make-up Fee',
174        'iuits': 'IUITS Fee',
175        'fine': 'Fine',
176        'id_card': 'Student ID Card',
177        'required_combi': 'Required Combi Payment',
178        'pg_other': 'PG Other Charges',
179        #'jupeb_form':'JUPEB Form Fee',
180        #'jupeb_acc':'JUPEB Acceptance Fee',
181        #'jupeb_reg':'JUPEB Administrative Fee',
182        'jupeb_sci':'JUPEB Tuition (Science)',
183        'jupeb_arts':'JUPEB Tuition (Arts)',
184        'jupeb_hostel':'JUPEB Accommodation (optional)',
185        }
186
187    COMBI_PAYMENT_CATEGORIES = {
188        'registration': 'Registration Fee',
189        'grad_clearance': 'Clearance Fee',
190        'late_registration': 'Late Registration Fee',
191        'science': 'Science Bench Fee',
192        'clinical': 'Clinical Fee (Medical Students)',
193        'develop': 'Development Fee',
194        'municipal_fresh': 'Municipal Fee (Fresh Students)',
195        'municipal_returning': 'Municipal Fee (Returning Students)',
196        'alumni': 'Alumni Fee',
197        'conv': 'Convocation Fee',
198        'matric': 'Matriculation Fee',
199        'waecneco': 'WAEC/NECO Verification',
200        'jambver': 'JAMB Verification',
201        'book': 'Book Deposit',
202        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
203        'pharmlab': 'Pharmacy Lab Support Fee',
204        'lo_ident': 'Letter of Identification Fee',
205        'change_course': 'Change of Course Fee',
206        'make_up': 'Make-up Fee',
207        'iuits': 'IUITS Fee',
208        'fine': 'Fine',
209        'id_card': 'Student ID Card',
210        'pg_other': 'PG Other Charges',
211        #'jupeb_form':'JUPEB Form Fee',
212        #'jupeb_acc':'JUPEB Acceptance Fee',
213        #'jupeb_reg':'JUPEB Administrative Fee',
214        'jupeb_sci':'JUPEB Tuition (Science)',
215        'jupeb_arts':'JUPEB Tuition (Arts)',
216        'jupeb_hostel':'JUPEB Accommodation (optional)',
217        }
218
219    BALANCE_PAYMENT_CATEGORIES = {
220        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
221        }
222
223    PAYMENT_OPTIONS = {
224        'first': 'First Bank Debit Card',
225        'access': 'Access Bank Debit Card',
226        'zenith': 'Zenith Bank Debit Card',
227        'other': 'Other Bank Debit Card',
228        }
229
230    APP_CATS_DICT = {
231        'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
232        'no': 'No Application',
233        'pg': 'Postgraduate Programmes',
234        'pg2': 'Postgraduate Programmes 2',
235        'pgphd': 'Postgraduate PhD/MPhil',
236        'pre': 'Pre-Degree Studies',
237        'pt': 'Part-Time Degree Programmes',
238        'ut': 'Undergraduate Programmes',
239        'conv': 'HND to BSc Conversion',
240        }
241
242    #: Maximum size in Bytes of passport images in the applicants and
243    #: students section
244    MAX_PASSPORT_SIZE = 250 * 1024
Note: See TracBrowser for help on using the repository browser.