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