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

Last change on this file since 16012 was 15937, checked in by Henrik Bettermann, 5 years ago

Implement multiple resit fee payment.

  • Property svn:keywords set to Id
File size: 7.3 KB
RevLine 
[10765]1## $Id: utils.py 15937 2020-01-17 15:23:05Z 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',
[15728]33        'registration': 'Registration Fee',
[15661]34        #'bed_allocation': 'Bed Allocation Fee',
35        #'hostel_maintenance': 'Accommodation',
[15645]36        #'transfer': 'Transfer Fee',
37        #'gown': 'Gown Hire Fee',
38        'application': 'Application Fee',
39        'app_balance': 'Application Fee Balance',
[15789]40        'transcript_local': 'Transcript Fee Local',
41        'transcript_overseas': 'Transcript Fee Oversea',
[15645]42        'late_registration': 'Late Registration Fee',
43        'science': 'Science Bench Fee',
44        'clinical': 'Clinical Fee (Medical Students)',
45        'develop': 'Development Fee',
[15789]46        'municipal_fresh': 'Municipal Fee Fresh)',
47        'municipal_returning': 'Municipal Fee Returning)',
[15645]48        'alumni': 'Alumni Fee',
49        'conv': 'Convocation Fee',
50        'matric': 'Matriculation Fee',
51        'waecneco': 'WAEC & NECO Verification',
52        'jambver': 'JAMB Verification',
53        'book': 'Book Deposit',
54        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
55        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]56        'lo_ident': 'Letter of Identification Fee',
57        'change_course': 'Change of Course Fee',
58        'make_up': 'Make-up Fee',
59        'iuits': 'IUITS Fee',
60        'fine': 'Fine',
[15686]61        'combi': 'Combi Payment',
[15937]62        'resit1': '1 Make-Up Examination Course',
63        'resit2': '2 Make-Up Examination Courses',
64        'resit3': '3 Make-Up Examination Courses',
65        'resit4': '4 Make-Up Examination Courses',
66        'resit5': '5 Make-Up Examination Courses',
67        'resit6': '6 Make-Up Examination Course',
68        'resit7': '7 Make-Up Examination Courses',
69        'resit8': '8 Make-Up Examination Courses',
70        'resit9': '9 Make-Up Examination Courses',
[15645]71        }
72
73    SELECTABLE_PAYMENT_CATEGORIES = {
[15663]74        'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)',
[15661]75        'schoolfee40': 'Tuition, Accommodation, Adm. Charges (40% - 1st instalment)',
[15663]76        'secondinstal': 'Tuition, Accommodation, Adm. Charges (60% - 2nd instalment)',
[15728]77        'registration': 'Registration Fee',
[15645]78        #'bed_allocation': 'Bed Allocation Fee',
[15661]79        #'hostel_maintenance': 'Accommodation',
[15645]80        #'transfer': 'Transfer Fee',
81        #'gown': 'Gown Hire Fee',
[15783]82        #'application': 'Application Fee',
[15645]83        #'app_balance': 'Application Fee Balance',
[15789]84        'transcript_local': 'Transcript Fee (Local Students)',
85        'transcript_overseas': 'Transcript Fee (Oversea Students)',
[15645]86        'late_registration': 'Late Registration Fee',
87        'science': 'Science Bench Fee',
88        'clinical': 'Clinical Fee (Medical Students)',
89        'develop': 'Development Fee',
[15789]90        'municipal_fresh': 'Municipal Fee (Fresh Students)',
91        'municipal_returning': 'Municipal Fee (Returning Students)',
[15645]92        'alumni': 'Alumni Fee',
93        'conv': 'Convocation Fee',
94        'matric': 'Matriculation Fee',
95        'waecneco': 'WAEC & NECO Verification',
96        'jambver': 'JAMB Verification',
97        'book': 'Book Deposit',
98        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
99        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]100        'lo_ident': 'Letter of Identification Fee',
101        'change_course': 'Change of Course Fee',
[15937]102        #'make_up': 'Make-up Fee',
[15736]103        'iuits': 'IUITS Fee',
104        'fine': 'Fine',
[15781]105        'combi': 'Combi Payment',
[15937]106        'resit1': '1 Make-Up Examination Course',
107        'resit2': '2 Make-Up Examination Courses',
108        'resit3': '3 Make-Up Examination Courses',
109        'resit4': '4 Make-Up Examination Courses',
110        'resit5': '5 Make-Up Examination Courses',
111        'resit6': '6 Make-Up Examination Course',
112        'resit7': '7 Make-Up Examination Courses',
113        'resit8': '8 Make-Up Examination Courses',
114        'resit9': '9 Make-Up Examination Courses',
[15645]115        }
116
[15661]117    PREVIOUS_PAYMENT_CATEGORIES = {
118        'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)',
[15728]119        'registration': 'Registration Fee',
[15661]120        'application': 'Application Fee',
121        'late_registration': 'Late Registration Fee',
122        'science': 'Science Bench Fee',
123        'clinical': 'Clinical Fee (Medical Students)',
124        'develop': 'Development Fee',
[15789]125        'municipal_fresh': 'Municipal Fee (Fresh Students)',
126        'municipal_returning': 'Municipal Fee (Returning Students)',
[15661]127        'alumni': 'Alumni Fee',
128        'conv': 'Convocation Fee',
129        'matric': 'Matriculation Fee',
130        'waecneco': 'WAEC & NECO Verification',
131        'jambver': 'JAMB Verification',
132        'book': 'Book Deposit',
133        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
134        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]135        'lo_ident': 'Letter of Identification Fee',
136        'change_course': 'Change of Course Fee',
137        'make_up': 'Make-up Fee',
138        'iuits': 'IUITS Fee',
139        'fine': 'Fine',
[15675]140        }
141
142    COMBI_PAYMENT_CATEGORIES = {
143        'late_registration': 'Late Registration Fee',
144        'science': 'Science Bench Fee',
145        'clinical': 'Clinical Fee (Medical Students)',
146        'develop': 'Development Fee',
[15789]147        'municipal_fresh': 'Municipal Fee (Fresh Students)',
148        'municipal_returning': 'Municipal Fee (Returning Students)',
[15675]149        'alumni': 'Alumni Fee',
150        'conv': 'Convocation Fee',
151        'matric': 'Matriculation Fee',
152        'waecneco': 'WAEC & NECO Verification',
153        'jambver': 'JAMB Verification',
[15782]154        #'book': 'Book Deposit',
[15675]155        'parentsconsult': 'Parents Consultative Forum (PCF) Fee',
156        'pharmlab': 'Pharmacy Lab Support Fee',
[15736]157        'lo_ident': 'Letter of Identification Fee',
158        'change_course': 'Change of Course Fee',
159        'make_up': 'Make-up Fee',
160        'iuits': 'IUITS Fee',
161        'fine': 'Fine',
[15738]162        }
163
164    APP_CATS_DICT = {
165        'basic': 'UAS, PUTME, PUDE, PCE, PRENCE',
166        'no': 'No Application',
[15858]167        'pg': 'Postgraduate Programmes',
[15738]168        'pre': 'Pre-Degree Studies',
[15809]169        'pt': 'Part-Time Degree Programmes',
[15858]170        'ut': 'Undergraduate Programmes',
[15738]171        }
[15877]172
173    #: Maximum size in Bytes of passport images in the applicants and
174    #: students section
175    MAX_PASSPORT_SIZE = 100 * 1024
Note: See TracBrowser for help on using the repository browser.