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

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

new application category and type.

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