1 | ## $Id: utils.py 15773 2019-11-07 17:45:43Z 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 | """ |
---|
20 | |
---|
21 | from copy import deepcopy |
---|
22 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
23 | |
---|
24 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
25 | """A collection of methods subject to customization. |
---|
26 | """ |
---|
27 | |
---|
28 | PAYMENT_CATEGORIES = { |
---|
29 | 'schoolfee': 'Tuition Plus (total amount)', |
---|
30 | 'schoolfee40': 'Tuition Plus (40% - 1st instalment)', |
---|
31 | 'secondinstal': 'Tuition Plus (60% - 2nd instalment)', |
---|
32 | 'clearance': 'Acceptance Fee', |
---|
33 | 'registration': 'Registration Fee', |
---|
34 | #'bed_allocation': 'Bed Allocation Fee', |
---|
35 | #'hostel_maintenance': 'Accommodation', |
---|
36 | #'transfer': 'Transfer Fee', |
---|
37 | #'gown': 'Gown Hire Fee', |
---|
38 | 'application': 'Application Fee', |
---|
39 | 'app_balance': 'Application Fee Balance', |
---|
40 | 'transcript': 'Transcript Fee', |
---|
41 | 'late_registration': 'Late Registration Fee', |
---|
42 | 'science': 'Science Bench Fee', |
---|
43 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
44 | 'develop': 'Development Fee', |
---|
45 | 'municipal': 'Municipal Fee', |
---|
46 | 'alumni': 'Alumni Fee', |
---|
47 | 'conv': 'Convocation Fee', |
---|
48 | 'matric': 'Matriculation Fee', |
---|
49 | 'waecneco': 'WAEC & NECO Verification', |
---|
50 | 'jambver': 'JAMB Verification', |
---|
51 | 'book': 'Book Deposit', |
---|
52 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
53 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
54 | 'lo_ident': 'Letter of Identification Fee', |
---|
55 | 'change_course': 'Change of Course Fee', |
---|
56 | 'make_up': 'Make-up Fee', |
---|
57 | 'iuits': 'IUITS Fee', |
---|
58 | 'fine': 'Fine', |
---|
59 | 'combi': 'Combi Payment', |
---|
60 | } |
---|
61 | |
---|
62 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
63 | 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', |
---|
64 | 'schoolfee40': 'Tuition, Accommodation, Adm. Charges (40% - 1st instalment)', |
---|
65 | 'secondinstal': 'Tuition, Accommodation, Adm. Charges (60% - 2nd instalment)', |
---|
66 | 'registration': 'Registration Fee', |
---|
67 | #'bed_allocation': 'Bed Allocation Fee', |
---|
68 | #'hostel_maintenance': 'Accommodation', |
---|
69 | #'transfer': 'Transfer Fee', |
---|
70 | #'gown': 'Gown Hire Fee', |
---|
71 | 'application': 'Application Fee', |
---|
72 | #'app_balance': 'Application Fee Balance', |
---|
73 | #'transcript': 'Transcript Fee', |
---|
74 | 'late_registration': 'Late Registration Fee', |
---|
75 | 'science': 'Science Bench Fee', |
---|
76 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
77 | 'develop': 'Development Fee', |
---|
78 | 'municipal': 'Municipal Fee', |
---|
79 | 'alumni': 'Alumni Fee', |
---|
80 | 'conv': 'Convocation Fee', |
---|
81 | 'matric': 'Matriculation Fee', |
---|
82 | 'waecneco': 'WAEC & NECO Verification', |
---|
83 | 'jambver': 'JAMB Verification', |
---|
84 | 'book': 'Book Deposit', |
---|
85 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
86 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
87 | 'lo_ident': 'Letter of Identification Fee', |
---|
88 | 'change_course': 'Change of Course Fee', |
---|
89 | 'make_up': 'Make-up Fee', |
---|
90 | 'iuits': 'IUITS Fee', |
---|
91 | 'fine': 'Fine', |
---|
92 | #'combi': 'Combi Payment', |
---|
93 | } |
---|
94 | |
---|
95 | PREVIOUS_PAYMENT_CATEGORIES = { |
---|
96 | 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', |
---|
97 | 'registration': 'Registration Fee', |
---|
98 | 'application': 'Application Fee', |
---|
99 | 'late_registration': 'Late Registration Fee', |
---|
100 | 'science': 'Science Bench Fee', |
---|
101 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
102 | 'develop': 'Development Fee', |
---|
103 | 'municipal': 'Municipal Fee', |
---|
104 | 'alumni': 'Alumni Fee', |
---|
105 | 'conv': 'Convocation Fee', |
---|
106 | 'matric': 'Matriculation Fee', |
---|
107 | 'waecneco': 'WAEC & NECO Verification', |
---|
108 | 'jambver': 'JAMB Verification', |
---|
109 | 'book': 'Book Deposit', |
---|
110 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
111 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
112 | 'lo_ident': 'Letter of Identification Fee', |
---|
113 | 'change_course': 'Change of Course Fee', |
---|
114 | 'make_up': 'Make-up Fee', |
---|
115 | 'iuits': 'IUITS Fee', |
---|
116 | 'fine': 'Fine', |
---|
117 | } |
---|
118 | |
---|
119 | COMBI_PAYMENT_CATEGORIES = { |
---|
120 | 'late_registration': 'Late Registration Fee', |
---|
121 | 'science': 'Science Bench Fee', |
---|
122 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
123 | 'develop': 'Development Fee', |
---|
124 | 'municipal': 'Municipal Fee', |
---|
125 | 'alumni': 'Alumni Fee', |
---|
126 | 'conv': 'Convocation Fee', |
---|
127 | 'matric': 'Matriculation Fee', |
---|
128 | 'waecneco': 'WAEC & NECO Verification', |
---|
129 | 'jambver': 'JAMB Verification', |
---|
130 | 'book': 'Book Deposit', |
---|
131 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
132 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
133 | 'lo_ident': 'Letter of Identification Fee', |
---|
134 | 'change_course': 'Change of Course Fee', |
---|
135 | 'make_up': 'Make-up Fee', |
---|
136 | 'iuits': 'IUITS Fee', |
---|
137 | 'fine': 'Fine', |
---|
138 | } |
---|
139 | |
---|
140 | APP_CATS_DICT = { |
---|
141 | 'basic': 'UAS, PUTME, PUDE, PCE, PRENCE', |
---|
142 | 'no': 'No Application', |
---|
143 | 'pg': 'Postgraduate', |
---|
144 | 'pre': 'Pre-Degree Studies', |
---|
145 | } |
---|