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

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

Change titles and disable payment categories.

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