[10765] | 1 | ## $Id: utils.py 15789 2019-11-09 16:24:23Z 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', |
---|
[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', |
---|
[15645] | 62 | } |
---|
| 63 | |
---|
| 64 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
[15663] | 65 | 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', |
---|
[15661] | 66 | 'schoolfee40': 'Tuition, Accommodation, Adm. Charges (40% - 1st instalment)', |
---|
[15663] | 67 | 'secondinstal': 'Tuition, Accommodation, Adm. Charges (60% - 2nd instalment)', |
---|
[15728] | 68 | 'registration': 'Registration Fee', |
---|
[15645] | 69 | #'bed_allocation': 'Bed Allocation Fee', |
---|
[15661] | 70 | #'hostel_maintenance': 'Accommodation', |
---|
[15645] | 71 | #'transfer': 'Transfer Fee', |
---|
| 72 | #'gown': 'Gown Hire Fee', |
---|
[15783] | 73 | #'application': 'Application Fee', |
---|
[15645] | 74 | #'app_balance': 'Application Fee Balance', |
---|
[15789] | 75 | 'transcript_local': 'Transcript Fee (Local Students)', |
---|
| 76 | 'transcript_overseas': 'Transcript Fee (Oversea Students)', |
---|
[15645] | 77 | 'late_registration': 'Late Registration Fee', |
---|
| 78 | 'science': 'Science Bench Fee', |
---|
| 79 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
| 80 | 'develop': 'Development Fee', |
---|
[15789] | 81 | 'municipal_fresh': 'Municipal Fee (Fresh Students)', |
---|
| 82 | 'municipal_returning': 'Municipal Fee (Returning Students)', |
---|
[15645] | 83 | 'alumni': 'Alumni Fee', |
---|
| 84 | 'conv': 'Convocation Fee', |
---|
| 85 | 'matric': 'Matriculation Fee', |
---|
| 86 | 'waecneco': 'WAEC & NECO Verification', |
---|
| 87 | 'jambver': 'JAMB Verification', |
---|
| 88 | 'book': 'Book Deposit', |
---|
| 89 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
| 90 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
[15736] | 91 | 'lo_ident': 'Letter of Identification Fee', |
---|
| 92 | 'change_course': 'Change of Course Fee', |
---|
| 93 | 'make_up': 'Make-up Fee', |
---|
| 94 | 'iuits': 'IUITS Fee', |
---|
| 95 | 'fine': 'Fine', |
---|
[15781] | 96 | 'combi': 'Combi Payment', |
---|
[15645] | 97 | } |
---|
| 98 | |
---|
[15661] | 99 | PREVIOUS_PAYMENT_CATEGORIES = { |
---|
| 100 | 'schoolfee': 'Tuition, Accommodation, Adm. Charges (total amount)', |
---|
[15728] | 101 | 'registration': 'Registration Fee', |
---|
[15661] | 102 | 'application': 'Application Fee', |
---|
| 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)', |
---|
[15661] | 109 | 'alumni': 'Alumni Fee', |
---|
| 110 | 'conv': 'Convocation Fee', |
---|
| 111 | 'matric': 'Matriculation Fee', |
---|
| 112 | 'waecneco': 'WAEC & NECO Verification', |
---|
| 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', |
---|
| 119 | 'make_up': 'Make-up Fee', |
---|
| 120 | 'iuits': 'IUITS Fee', |
---|
| 121 | 'fine': 'Fine', |
---|
[15675] | 122 | } |
---|
| 123 | |
---|
| 124 | COMBI_PAYMENT_CATEGORIES = { |
---|
| 125 | 'late_registration': 'Late Registration Fee', |
---|
| 126 | 'science': 'Science Bench Fee', |
---|
| 127 | 'clinical': 'Clinical Fee (Medical Students)', |
---|
| 128 | 'develop': 'Development Fee', |
---|
[15789] | 129 | 'municipal_fresh': 'Municipal Fee (Fresh Students)', |
---|
| 130 | 'municipal_returning': 'Municipal Fee (Returning Students)', |
---|
[15675] | 131 | 'alumni': 'Alumni Fee', |
---|
| 132 | 'conv': 'Convocation Fee', |
---|
| 133 | 'matric': 'Matriculation Fee', |
---|
| 134 | 'waecneco': 'WAEC & NECO Verification', |
---|
| 135 | 'jambver': 'JAMB Verification', |
---|
[15782] | 136 | #'book': 'Book Deposit', |
---|
[15675] | 137 | 'parentsconsult': 'Parents Consultative Forum (PCF) Fee', |
---|
| 138 | 'pharmlab': 'Pharmacy Lab Support Fee', |
---|
[15736] | 139 | 'lo_ident': 'Letter of Identification Fee', |
---|
| 140 | 'change_course': 'Change of Course Fee', |
---|
| 141 | 'make_up': 'Make-up Fee', |
---|
| 142 | 'iuits': 'IUITS Fee', |
---|
| 143 | 'fine': 'Fine', |
---|
[15738] | 144 | } |
---|
| 145 | |
---|
| 146 | APP_CATS_DICT = { |
---|
| 147 | 'basic': 'UAS, PUTME, PUDE, PCE, PRENCE', |
---|
| 148 | 'no': 'No Application', |
---|
| 149 | 'pg': 'Postgraduate', |
---|
| 150 | 'pre': 'Pre-Degree Studies', |
---|
| 151 | } |
---|