[16639] | 1 | ## $Id: utils.py 17332 2023-02-02 11:10:27Z henrik $ |
---|
[15614] | 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 | from kofacustom.nigeria.utils.utils import NigeriaKofaUtils |
---|
| 21 | |
---|
| 22 | class CustomKofaUtils(NigeriaKofaUtils): |
---|
| 23 | """A collection of methods subject to customization. |
---|
| 24 | """ |
---|
[17207] | 25 | EXAM_GRADES = ( |
---|
| 26 | ('A1', 'Excellent (A1)'), |
---|
| 27 | ('A2', 'Very Good (A2)'), |
---|
| 28 | ('A3', 'Good (A3)'), |
---|
| 29 | ('B2', 'Very Good (B2)'), |
---|
| 30 | ('B3', 'Good (B3)'), |
---|
| 31 | ('C4', 'Credit (C4)'), |
---|
| 32 | ('C5', 'Credit (C5)'), |
---|
| 33 | ('C6', 'Credit (C6)'), |
---|
[17209] | 34 | #('A', 'Pass (A)'), |
---|
| 35 | #('B', 'Pass (B)'), |
---|
| 36 | #('C', 'Pass (C)'), |
---|
[17207] | 37 | #('U', 'Pass (U)'), |
---|
| 38 | #('D7', 'Pass (D7)'), |
---|
| 39 | #('P7', 'Pass (P7)'), |
---|
| 40 | #('P8', 'Pass (P8)'), |
---|
| 41 | #('E8', 'Pass (E8)'), |
---|
| 42 | #('F9', 'Fail (F9)'), |
---|
[17209] | 43 | #('Aa', 'A (a)'), |
---|
| 44 | #('Bb', 'B (b)'), |
---|
| 45 | #('Cc', 'C (c)'), |
---|
[17207] | 46 | #('Dd', 'D (d)'), |
---|
| 47 | #('Ee', 'E (e)'), |
---|
| 48 | #('Ff', 'F (f)'), |
---|
| 49 | #('Gg', 'G (g)'), |
---|
[17209] | 50 | #('credit-1', 'Credit-1'), |
---|
| 51 | #('credit-2', 'Credit-2'), |
---|
[17207] | 52 | ('dist', 'Distinction'), |
---|
| 53 | #('pass', 'Pass'), |
---|
| 54 | #('AR', 'Awaiting Results'), |
---|
| 55 | ) |
---|
[15614] | 56 | |
---|
[16701] | 57 | PAYMENT_CATEGORIES = { |
---|
[16704] | 58 | 'schoolfee': 'School Fee (total amount)', |
---|
[17031] | 59 | 'schoolfee_1': 'School Fee (66% - 1st instalment)', |
---|
| 60 | 'secondinstal': 'School Fee (34% - 2nd instalment)', |
---|
[16712] | 61 | 'clearance': 'Acceptance Fee', |
---|
[16792] | 62 | 'hostel':'Hostel Fee', |
---|
[16701] | 63 | #'bed_allocation': 'Bed Allocation Fee', |
---|
| 64 | #'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
| 65 | #'transfer': 'Transfer Fee', |
---|
| 66 | #'gown': 'Gown Hire Fee', |
---|
[16712] | 67 | 'application': 'Application Fee', |
---|
[16701] | 68 | #'app_balance': 'Application Fee Balance', |
---|
[17039] | 69 | 'transcript': 'Transcript Fee', |
---|
[16701] | 70 | #'late_registration': 'Late Course Registration Fee', |
---|
| 71 | #'combi': 'Combi Payment', |
---|
[17332] | 72 | 'resit': 'Resit Fee', |
---|
[16701] | 73 | } |
---|
| 74 | |
---|
[16704] | 75 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
[17031] | 76 | 'schoolfee': 'School Fee (total amount)', |
---|
| 77 | 'schoolfee_1': 'School Fee (66% - 1st instalment)', |
---|
| 78 | 'secondinstal': 'School Fee (34% - 2nd instalment)', |
---|
[16792] | 79 | 'hostel':'Hostel Fee', |
---|
[17332] | 80 | 'resit': 'Resit Fee', |
---|
[16704] | 81 | } |
---|
[16705] | 82 | |
---|
| 83 | def selectable_payment_categories(self, student): |
---|
| 84 | return self.SELECTABLE_PAYMENT_CATEGORIES |
---|
[16710] | 85 | |
---|
| 86 | PREVIOUS_PAYMENT_CATEGORIES = { |
---|
| 87 | 'schoolfee': 'School Fee', |
---|
[16792] | 88 | 'hostel':'Hostel Fee', |
---|
[16710] | 89 | } |
---|
| 90 | |
---|
| 91 | REPORTABLE_PAYMENT_CATEGORIES = { |
---|
| 92 | 'schoolfee': 'School Fee', |
---|
| 93 | } |
---|
| 94 | |
---|
| 95 | BALANCE_PAYMENT_CATEGORIES = { |
---|
| 96 | 'schoolfee': 'School Fee', |
---|
[16792] | 97 | 'hostel':'Hostel Fee', |
---|
[16710] | 98 | } |
---|
| 99 | |
---|
| 100 | COMBI_PAYMENT_CATEGORIES = { |
---|
| 101 | } |
---|
[17044] | 102 | |
---|
| 103 | STUDY_MODES_DICT = { |
---|
[17096] | 104 | 'ug_ft': 'Undergraduate Full Time', |
---|
[17050] | 105 | #'no': 'no application', |
---|
| 106 | 'basic_mid':'Basic Midwifery', |
---|
| 107 | 'basic_nurs':'Basic Nursing', |
---|
| 108 | 'post_mid':'Post Midwifery', |
---|
| 109 | 'post_nurs':'Post Nursing', |
---|
[17044] | 110 | } |
---|