[16639] | 1 | ## $Id: utils.py 17382 2023-04-17 08:53:50Z 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)', |
---|
[17382] | 59 | 'schoolfee_1': 'School Fee (1st instalment)', |
---|
| 60 | 'secondinstal': 'School Fee (2nd instalment)', |
---|
[16712] | 61 | 'clearance': 'Acceptance Fee', |
---|
[17365] | 62 | 'hostel':'Hostel Fee (1st instalment)', |
---|
[17364] | 63 | 'hostel_2':'Hostel Fee (2nd instalment)', |
---|
[16701] | 64 | #'bed_allocation': 'Bed Allocation Fee', |
---|
| 65 | #'hostel_maintenance': 'Hostel Maintenance Fee', |
---|
| 66 | #'transfer': 'Transfer Fee', |
---|
| 67 | #'gown': 'Gown Hire Fee', |
---|
[16712] | 68 | 'application': 'Application Fee', |
---|
[16701] | 69 | #'app_balance': 'Application Fee Balance', |
---|
[17039] | 70 | 'transcript': 'Transcript Fee', |
---|
[16701] | 71 | #'late_registration': 'Late Course Registration Fee', |
---|
| 72 | #'combi': 'Combi Payment', |
---|
[17332] | 73 | 'resit': 'Resit Fee', |
---|
[16701] | 74 | } |
---|
| 75 | |
---|
[16704] | 76 | SELECTABLE_PAYMENT_CATEGORIES = { |
---|
[17031] | 77 | 'schoolfee': 'School Fee (total amount)', |
---|
[17382] | 78 | 'schoolfee_1': 'School Fee (1st instalment)', |
---|
| 79 | 'secondinstal': 'School Fee (2nd instalment)', |
---|
[17365] | 80 | 'hostel':'Hostel Fee (1st instalment)', |
---|
[17364] | 81 | 'hostel_2':'Hostel Fee (2nd instalment)', |
---|
[17332] | 82 | 'resit': 'Resit Fee', |
---|
[16704] | 83 | } |
---|
[16705] | 84 | |
---|
| 85 | def selectable_payment_categories(self, student): |
---|
| 86 | return self.SELECTABLE_PAYMENT_CATEGORIES |
---|
[16710] | 87 | |
---|
| 88 | PREVIOUS_PAYMENT_CATEGORIES = { |
---|
| 89 | 'schoolfee': 'School Fee', |
---|
[16792] | 90 | 'hostel':'Hostel Fee', |
---|
[16710] | 91 | } |
---|
| 92 | |
---|
| 93 | REPORTABLE_PAYMENT_CATEGORIES = { |
---|
| 94 | 'schoolfee': 'School Fee', |
---|
| 95 | } |
---|
| 96 | |
---|
| 97 | BALANCE_PAYMENT_CATEGORIES = { |
---|
| 98 | 'schoolfee': 'School Fee', |
---|
[16792] | 99 | 'hostel':'Hostel Fee', |
---|
[16710] | 100 | } |
---|
| 101 | |
---|
| 102 | COMBI_PAYMENT_CATEGORIES = { |
---|
| 103 | } |
---|
[17044] | 104 | |
---|
| 105 | STUDY_MODES_DICT = { |
---|
[17096] | 106 | 'ug_ft': 'Undergraduate Full Time', |
---|
[17050] | 107 | #'no': 'no application', |
---|
| 108 | 'basic_mid':'Basic Midwifery', |
---|
| 109 | 'basic_nurs':'Basic Nursing', |
---|
| 110 | 'post_mid':'Post Midwifery', |
---|
| 111 | 'post_nurs':'Post Nursing', |
---|
[17044] | 112 | } |
---|