[10765] | 1 | ## $Id: utils.py 15074 2018-07-03 05:47:49Z 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 | """ |
---|
[15011] | 20 | from copy import deepcopy |
---|
[10765] | 21 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
| 22 | |
---|
| 23 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
| 24 | """A collection of methods subject to customization. |
---|
| 25 | """ |
---|
| 26 | |
---|
[15074] | 27 | APP_CATS_DICT = { |
---|
| 28 | 'basic': 'Basic Application', |
---|
| 29 | 'no': 'no application', |
---|
| 30 | 'pg': 'Postgraduate', |
---|
| 31 | 'sandwich': 'Sandwich', |
---|
| 32 | 'cest': 'Part-Time, Diploma, Certificate' |
---|
| 33 | } |
---|
| 34 | |
---|
[15011] | 35 | PAYMENT_CATEGORIES = { |
---|
[15041] | 36 | 'schoolfee': 'Tuition and Exams Fee', |
---|
[15011] | 37 | 'clearance': 'Acceptance Fee', |
---|
| 38 | 'bed_allocation': 'Accommodation Booking Fee', |
---|
| 39 | 'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
| 40 | 'application': 'Application Fee', |
---|
[15041] | 41 | 'ict_entre': 'ICT and Entrepreneur Fee', |
---|
[15013] | 42 | 'logbook_combo': 'Logbook Combo Fee', |
---|
[15015] | 43 | 'siwess_combo': 'SIWESS Combo Fee', |
---|
| 44 | 'transcript': 'Transcript Fee', |
---|
| 45 | 'certificate': 'Certificate Fee', |
---|
[15071] | 46 | 'certificate_confirm': 'Certificate Confirmation Fee', |
---|
| 47 | 'late_registration': 'Late Course Registration Fee', |
---|
| 48 | 'final_clearance': 'Final Clearance Fee', |
---|
[15011] | 49 | } |
---|
| 50 | |
---|
[15028] | 51 | SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES) |
---|
| 52 | |
---|
| 53 | BALANCE_PAYMENT_CATEGORIES = { |
---|
[15041] | 54 | 'schoolfee': 'Tuition and Exams Fee', |
---|
| 55 | 'ict_entre': 'ICT and Entrepreneur Fee', |
---|
[15071] | 56 | 'certificate_confirm': 'Certificate Confirmation Fee', |
---|
| 57 | 'final_clearance': 'Final Clearance Fee', |
---|
[15034] | 58 | } |
---|
| 59 | |
---|
| 60 | REPORTABLE_PAYMENT_CATEGORIES = { |
---|
[15041] | 61 | 'schoolfee': 'Tuition and Exams Fee', |
---|
[15034] | 62 | 'clearance': 'Acceptance Fee', |
---|
| 63 | #'bed_allocation': 'Accommodation Booking Fee', |
---|
| 64 | 'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
[15041] | 65 | 'ict_entre': 'ICT and Entrepreneur Fee', |
---|
[15034] | 66 | 'logbook_combo': 'Logbook Combo Fee', |
---|
| 67 | 'siwess_combo': 'SIWESS Combo Fee', |
---|
| 68 | #'transcript': 'Transcript Fee', |
---|
| 69 | 'certificate': 'Certificate Fee', |
---|
[15071] | 70 | 'certificate_confirm': 'Certificate Confirmation Fee', |
---|
| 71 | 'late_registration': 'Late Course Registration Fee', |
---|
| 72 | 'final_clearance': 'Final Clearance Fee', |
---|
[15069] | 73 | } |
---|
| 74 | |
---|
| 75 | STUDY_MODES_DICT = { |
---|
[15073] | 76 | #'ume_ft': 'UME Full Time', |
---|
| 77 | 'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)', |
---|
| 78 | #'ug_pt': 'Undergraduate Part Time', |
---|
| 79 | #'dp_pt': 'Diploma Part Time', |
---|
| 80 | #'ct_ft': 'Certificate Full Time', |
---|
| 81 | #'dp_ft': 'Diploma Full Time', |
---|
| 82 | #'de_ft': 'Direct Entry Full Time', |
---|
| 83 | #'de_pt': 'Direct Entry Part Time', |
---|
[15069] | 84 | 'nd_ft': 'National Diploma Full Time', |
---|
| 85 | 'nd_pt': 'National Diploma Part Time', |
---|
| 86 | 'hnd_ft': 'Higher National Diploma Full Time', |
---|
| 87 | 'hnd_pt': 'Higher National Diploma Part Time', |
---|
[15073] | 88 | #'pg_ft': 'Postgraduate Full Time', |
---|
| 89 | #'pg_pt': 'Postgraduate Part Time', |
---|
| 90 | #'pgd_ft': 'Postgraduate Diploma Full Time', |
---|
| 91 | #'pgd_pt': 'Postgraduate Diploma Part Time', |
---|
| 92 | #'special_pg_pt': 'Special Postgraduate Part Time', |
---|
| 93 | #'nce_ft': 'NCE Full Time', |
---|
| 94 | #'nce_pt': 'NCE Part Time', |
---|
| 95 | #'ug_sw': 'Undergraduate Sandwich', |
---|
| 96 | #'nce_sw': 'NCE Sandwich', |
---|
| 97 | #'jm_ft': 'Joint Matriculation Full Time', |
---|
| 98 | #'ph_ft': 'Post Higher Education Full Time', |
---|
| 99 | #'transfer_pt': 'Transfer Part Time', |
---|
| 100 | #'transfer_ft': 'Transfer Full Time', |
---|
| 101 | #'ct_pt': 'Certificate Part Time', |
---|
| 102 | #'rmd_ft': 'Remedial with deficiencies', |
---|
| 103 | #'rm_ft': 'Remedial', |
---|
[15069] | 104 | 'transfer': 'Transfer', |
---|
[15073] | 105 | #'prence': 'Pre-NCE', |
---|
| 106 | #'prend': 'Pre-ND', |
---|
| 107 | #'pce': 'PCE', |
---|
| 108 | #'pd_ft': 'Professional Diploma in Education', |
---|
| 109 | #'found': 'Foundation', |
---|
[15069] | 110 | 'no': 'no application', |
---|
| 111 | } |
---|
| 112 | |
---|
| 113 | MODE_GROUPS = { |
---|
| 114 | 'All': ('all',), |
---|
[15073] | 115 | 'Undergraduate Full-Time': ('hnd_ft', 'nd_ft'), |
---|
| 116 | 'Undergraduate Part-Time': ('hnd_pt', 'nd_pt'), |
---|
| 117 | #'Postgraduate Full-Time': ('pg_ft',), |
---|
| 118 | #'Postgraduate Part-Time': ('pg_pt',), |
---|
[15069] | 119 | } |
---|