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

Last change on this file since 17024 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
RevLine 
[10765]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"""
[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',
[16747]40        'pg_application': 'PG Application Fee',
[15645]41        'app_balance': 'Application Fee Balance',
[16142]42        'transcript': 'Transcript Fee',
[15789]43        'transcript_local': 'Transcript Fee Local',
44        'transcript_overseas': 'Transcript Fee Oversea',
[15645]45        'late_registration': 'Late Registration Fee',
46        'science': 'Science Bench Fee',
47        'clinical': 'Clinical Fee (Medical Students)',
48        'develop': 'Development Fee',
[16223]49        'municipal_fresh': 'Municipal Fee (Fresh Students)',
50        'municipal_returning': 'Municipal Fee (Returning Students)',
[15645]51        'alumni': 'Alumni Fee',
52        'conv': 'Convocation Fee',
53        'matric': 'Matriculation Fee',
[16305]54        'waecneco': 'WAEC/NECO Verification',
[15645]55        'jambver': 'JAMB Verification',
56        'book': 'Book Deposit',
57        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
58        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]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',
[15686]64        'combi': 'Combi Payment',
[15937]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',
[16575]74        'makeup_admin': 'Make-Up Registration Fee',
[16111]75        'id_card': 'Student ID Card',
[16222]76        'required_combi': 'Required Combi Payment',
[16233]77        'pg_other': 'PG Other Charges',
[16395]78        'jupeb_form':'JUPEB Form Fee',
79        'jupeb_acc':'JUPEB Acceptance Fee',
[16585]80        'jupeb_reg':'JUPEB Administrative Fee',
[16687]81        'jupeb_sci':'JUPEB Tuition (Science)',
82        'jupeb_arts':'JUPEB Tuition (Arts)',
83        'jupeb_hostel':'JUPEB Accommodation (optional)',
[16630]84        'brought_fwd': 'Balance Brought Forward',
[15645]85        }
86
87    SELECTABLE_PAYMENT_CATEGORIES = {
[16233]88        'schoolfee': 'Tuition Plus (total amount)',
89        'schoolfee40': 'Tuition Plus (40% - 1st instalment)',
90        'secondinstal': 'Tuition Plus (60% - 2nd instalment)',
[15728]91        'registration': 'Registration Fee',
[16208]92        'clearance': 'Acceptance Fee',
[16212]93        'grad_clearance': 'Clearance Fee',
[15645]94        #'bed_allocation': 'Bed Allocation Fee',
[15661]95        #'hostel_maintenance': 'Accommodation',
[15645]96        #'transfer': 'Transfer Fee',
97        #'gown': 'Gown Hire Fee',
[16394]98        'application': 'Application Fee',
[16747]99        'pg_application': 'PG Application Fee',
[15645]100        #'app_balance': 'Application Fee Balance',
[15789]101        'transcript_local': 'Transcript Fee (Local Students)',
102        'transcript_overseas': 'Transcript Fee (Oversea Students)',
[15645]103        'late_registration': 'Late Registration Fee',
104        'science': 'Science Bench Fee',
105        'clinical': 'Clinical Fee (Medical Students)',
106        'develop': 'Development Fee',
[15789]107        'municipal_fresh': 'Municipal Fee (Fresh Students)',
108        'municipal_returning': 'Municipal Fee (Returning Students)',
[15645]109        'alumni': 'Alumni Fee',
110        'conv': 'Convocation Fee',
111        'matric': 'Matriculation Fee',
[16305]112        'waecneco': 'WAEC/NECO Verification',
[15645]113        'jambver': 'JAMB Verification',
114        'book': 'Book Deposit',
115        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
116        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]117        'lo_ident': 'Letter of Identification Fee',
118        'change_course': 'Change of Course Fee',
[15937]119        #'make_up': 'Make-up Fee',
[15736]120        'iuits': 'IUITS Fee',
121        'fine': 'Fine',
[15781]122        'combi': 'Combi Payment',
[15937]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',
[16575]132        'makeup_admin': 'Make-Up Registration Fee',
[16111]133        'id_card': 'Student ID Card',
[16222]134        'required_combi': 'Required Combi Payment',
[16233]135        'pg_other': 'PG Other Charges',
[16687]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)',
[15645]142        }
143
[16576]144    def selectable_payment_categories(self, student):
145        return self.SELECTABLE_PAYMENT_CATEGORIES
146
[15661]147    PREVIOUS_PAYMENT_CATEGORIES = {
[16233]148        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
[15728]149        'registration': 'Registration Fee',
[16208]150        'clearance': 'Acceptance Fee',
[16212]151        'grad_clearance': 'Clearance Fee',
[15661]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',
[15789]157        'municipal_fresh': 'Municipal Fee (Fresh Students)',
158        'municipal_returning': 'Municipal Fee (Returning Students)',
[15661]159        'alumni': 'Alumni Fee',
160        'conv': 'Convocation Fee',
161        'matric': 'Matriculation Fee',
[16305]162        'waecneco': 'WAEC/NECO Verification',
[15661]163        'jambver': 'JAMB Verification',
164        'book': 'Book Deposit',
165        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
166        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]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',
[16111]172        'id_card': 'Student ID Card',
[16258]173        'required_combi': 'Required Combi Payment',
[16233]174        'pg_other': 'PG Other Charges',
[16687]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)',
[15675]181        }
182
183    COMBI_PAYMENT_CATEGORIES = {
[16284]184        'registration': 'Registration Fee',
[16212]185        'grad_clearance': 'Clearance Fee',
[15675]186        'late_registration': 'Late Registration Fee',
187        'science': 'Science Bench Fee',
188        'clinical': 'Clinical Fee (Medical Students)',
[16284]189        'develop': 'Development Fee',
190        'municipal_fresh': 'Municipal Fee (Fresh Students)',
191        'municipal_returning': 'Municipal Fee (Returning Students)',
[15675]192        'alumni': 'Alumni Fee',
193        'conv': 'Convocation Fee',
194        'matric': 'Matriculation Fee',
[16305]195        'waecneco': 'WAEC/NECO Verification',
[15675]196        'jambver': 'JAMB Verification',
[16284]197        'book': 'Book Deposit',
198        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
[15675]199        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]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',
[16111]205        'id_card': 'Student ID Card',
[16233]206        'pg_other': 'PG Other Charges',
[16687]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)',
[15738]213        }
214
[16015]215    BALANCE_PAYMENT_CATEGORIES = {
[16233]216        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
[16015]217        }
218
[16434]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
[15738]226    APP_CATS_DICT = {
227        'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
228        'no': 'No Application',
[15858]229        'pg': 'Postgraduate Programmes',
[16092]230        'pg2': 'Postgraduate Programmes 2',
[16497]231        'pgphd': 'Postgraduate PhD/MPhil',
[15738]232        'pre': 'Pre-Degree Studies',
[15809]233        'pt': 'Part-Time Degree Programmes',
[15858]234        'ut': 'Undergraduate Programmes',
[16619]235        'conv': 'HND to BSc Conversion',
[15738]236        }
[15877]237
238    #: Maximum size in Bytes of passport images in the applicants and
239    #: students section
[16048]240    MAX_PASSPORT_SIZE = 250 * 1024
Note: See TracBrowser for help on using the repository browser.