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

Last change on this file since 17414 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
RevLine 
[10765]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"""
[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):
[17126]145        spc = deepcopy(self.SELECTABLE_PAYMENT_CATEGORIES)
146        if student.depcode == 'BMS':
147            del spc['schoolfee40']
148            del spc['secondinstal']
149        return spc
[16576]150
[15661]151    PREVIOUS_PAYMENT_CATEGORIES = {
[16233]152        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
[15728]153        'registration': 'Registration Fee',
[16208]154        'clearance': 'Acceptance Fee',
[16212]155        'grad_clearance': 'Clearance Fee',
[15661]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',
[15789]161        'municipal_fresh': 'Municipal Fee (Fresh Students)',
162        'municipal_returning': 'Municipal Fee (Returning Students)',
[15661]163        'alumni': 'Alumni Fee',
164        'conv': 'Convocation Fee',
165        'matric': 'Matriculation Fee',
[16305]166        'waecneco': 'WAEC/NECO Verification',
[15661]167        'jambver': 'JAMB Verification',
168        'book': 'Book Deposit',
169        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
170        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]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',
[16111]176        'id_card': 'Student ID Card',
[16258]177        'required_combi': 'Required Combi Payment',
[16233]178        'pg_other': 'PG Other Charges',
[16687]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)',
[15675]185        }
186
187    COMBI_PAYMENT_CATEGORIES = {
[16284]188        'registration': 'Registration Fee',
[16212]189        'grad_clearance': 'Clearance Fee',
[15675]190        'late_registration': 'Late Registration Fee',
191        'science': 'Science Bench Fee',
192        'clinical': 'Clinical Fee (Medical Students)',
[16284]193        'develop': 'Development Fee',
194        'municipal_fresh': 'Municipal Fee (Fresh Students)',
195        'municipal_returning': 'Municipal Fee (Returning Students)',
[15675]196        'alumni': 'Alumni Fee',
197        'conv': 'Convocation Fee',
198        'matric': 'Matriculation Fee',
[16305]199        'waecneco': 'WAEC/NECO Verification',
[15675]200        'jambver': 'JAMB Verification',
[16284]201        'book': 'Book Deposit',
202        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
[15675]203        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]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',
[16111]209        'id_card': 'Student ID Card',
[16233]210        'pg_other': 'PG Other Charges',
[16687]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)',
[15738]217        }
218
[16015]219    BALANCE_PAYMENT_CATEGORIES = {
[16233]220        'schoolfee': 'Tuition, Accommodation, Adm. Charges',
[16015]221        }
222
[16434]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
[15738]230    APP_CATS_DICT = {
231        'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
232        'no': 'No Application',
[15858]233        'pg': 'Postgraduate Programmes',
[16092]234        'pg2': 'Postgraduate Programmes 2',
[16497]235        'pgphd': 'Postgraduate PhD/MPhil',
[15738]236        'pre': 'Pre-Degree Studies',
[15809]237        'pt': 'Part-Time Degree Programmes',
[15858]238        'ut': 'Undergraduate Programmes',
[16619]239        'conv': 'HND to BSc Conversion',
[15738]240        }
[15877]241
242    #: Maximum size in Bytes of passport images in the applicants and
243    #: students section
[16048]244    MAX_PASSPORT_SIZE = 250 * 1024
Note: See TracBrowser for help on using the repository browser.