source: main/kofacustom.edocons/trunk/src/kofacustom/edocons/utils/utils.py @ 17409

Last change on this file since 17409 was 17394, checked in by Henrik Bettermann, 19 months ago

Add degrees.

  • Property svn:keywords set to Id
File size: 4.1 KB
Line 
1## $Id: utils.py 17394 2023-04-27 06:41: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"""
20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
21
22class CustomKofaUtils(NigeriaKofaUtils):
23    """A collection of methods subject to customization.
24    """
25
26    DEGREES_DICT = {
27        'BA': 'Bachelor of Arts',
28        'BAGR': 'Bachelor of Agriculture',
29        'LLB': 'Bachelor of Laws',
30        'MA': 'Master of Arts',
31        'MBA': 'Master of Business Administration',
32        'MUSM': 'Master of Music',
33        'LLM': 'Master of Laws',
34        'DBA': 'Doctor of Business Administration',
35        'PHD': 'Doctor of Philosophy',
36        'MD': 'Doctor of Medicine',
37        'RN': 'Registered Nursing',
38        'RM': 'Registered Midwifery',
39        }
40
41    EXAM_GRADES = (
42        ('A1', 'Excellent (A1)'),
43        ('A2', 'Very Good (A2)'),
44        ('A3', 'Good (A3)'),
45        ('B2', 'Very Good (B2)'),
46        ('B3', 'Good (B3)'),
47        ('C4', 'Credit (C4)'),
48        ('C5', 'Credit (C5)'),
49        ('C6', 'Credit (C6)'),
50        #('A', 'Pass (A)'),
51        #('B', 'Pass (B)'),
52        #('C', 'Pass (C)'),
53        #('U', 'Pass (U)'),
54        #('D7', 'Pass (D7)'),
55        #('P7', 'Pass (P7)'),
56        #('P8', 'Pass (P8)'),
57        #('E8', 'Pass (E8)'),
58        #('F9', 'Fail (F9)'),
59        #('Aa', 'A (a)'),
60        #('Bb', 'B (b)'),
61        #('Cc', 'C (c)'),
62        #('Dd', 'D (d)'),
63        #('Ee', 'E (e)'),
64        #('Ff', 'F (f)'),
65        #('Gg', 'G (g)'),
66        #('credit-1', 'Credit-1'),
67        #('credit-2', 'Credit-2'),
68        ('dist', 'Distinction'),
69        #('pass', 'Pass'),
70        #('AR', 'Awaiting Results'),
71        )
72
73    PAYMENT_CATEGORIES = {
74        'schoolfee': 'School Fee (total amount)',
75        'schoolfee_1': 'School Fee (1st instalment)',
76        'secondinstal': 'School Fee (2nd instalment)',
77        'clearance': 'Acceptance Fee',
78        'hostel':'Hostel Fee (1st instalment)',
79        'hostel_2':'Hostel Fee (2nd instalment)',
80        #'bed_allocation': 'Bed Allocation Fee',
81        #'hostel_maintenance': 'Hostel Maintenance Fee',
82        #'transfer': 'Transfer Fee',
83        #'gown': 'Gown Hire Fee',
84        'application': 'Application Fee',
85        #'app_balance': 'Application Fee Balance',
86        'transcript': 'Transcript Fee',
87        #'late_registration': 'Late Course Registration Fee',
88        #'combi': 'Combi Payment',
89        'resit': 'Resit Fee',
90        }
91
92    SELECTABLE_PAYMENT_CATEGORIES = {
93        'schoolfee': 'School Fee (total amount)',
94        'schoolfee_1': 'School Fee (1st instalment)',
95        'secondinstal': 'School Fee (2nd instalment)',
96        'hostel':'Hostel Fee (1st instalment)',
97        'hostel_2':'Hostel Fee (2nd instalment)',
98        'resit': 'Resit Fee',
99        }
100
101    def selectable_payment_categories(self, student):
102        return self.SELECTABLE_PAYMENT_CATEGORIES
103
104    PREVIOUS_PAYMENT_CATEGORIES = {
105        'schoolfee': 'School Fee',
106        'hostel':'Hostel Fee',
107        }
108
109    REPORTABLE_PAYMENT_CATEGORIES = {
110        'schoolfee': 'School Fee',
111        }
112
113    BALANCE_PAYMENT_CATEGORIES = {
114        'schoolfee': 'School Fee',
115        'hostel':'Hostel Fee',
116        }
117
118    COMBI_PAYMENT_CATEGORIES = {
119        }
120
121    STUDY_MODES_DICT = {
122        'ug_ft': 'Undergraduate Full Time',
123        #'no': 'no application',
124        'basic_mid':'Basic Midwifery',
125        'basic_nurs':'Basic Nursing',
126        'post_mid':'Post Midwifery',
127        'post_nurs':'Post Nursing',
128        }
Note: See TracBrowser for help on using the repository browser.