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

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

More precisely

  • Property svn:keywords set to Id
File size: 3.6 KB
Line 
1## $Id: utils.py 17382 2023-04-17 08:53:50Z 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    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)'),
34        #('A', 'Pass (A)'),
35        #('B', 'Pass (B)'),
36        #('C', 'Pass (C)'),
37        #('U', 'Pass (U)'),
38        #('D7', 'Pass (D7)'),
39        #('P7', 'Pass (P7)'),
40        #('P8', 'Pass (P8)'),
41        #('E8', 'Pass (E8)'),
42        #('F9', 'Fail (F9)'),
43        #('Aa', 'A (a)'),
44        #('Bb', 'B (b)'),
45        #('Cc', 'C (c)'),
46        #('Dd', 'D (d)'),
47        #('Ee', 'E (e)'),
48        #('Ff', 'F (f)'),
49        #('Gg', 'G (g)'),
50        #('credit-1', 'Credit-1'),
51        #('credit-2', 'Credit-2'),
52        ('dist', 'Distinction'),
53        #('pass', 'Pass'),
54        #('AR', 'Awaiting Results'),
55        )
56
57    PAYMENT_CATEGORIES = {
58        'schoolfee': 'School Fee (total amount)',
59        'schoolfee_1': 'School Fee (1st instalment)',
60        'secondinstal': 'School Fee (2nd instalment)',
61        'clearance': 'Acceptance Fee',
62        'hostel':'Hostel Fee (1st instalment)',
63        'hostel_2':'Hostel Fee (2nd instalment)',
64        #'bed_allocation': 'Bed Allocation Fee',
65        #'hostel_maintenance': 'Hostel Maintenance Fee',
66        #'transfer': 'Transfer Fee',
67        #'gown': 'Gown Hire Fee',
68        'application': 'Application Fee',
69        #'app_balance': 'Application Fee Balance',
70        'transcript': 'Transcript Fee',
71        #'late_registration': 'Late Course Registration Fee',
72        #'combi': 'Combi Payment',
73        'resit': 'Resit Fee',
74        }
75
76    SELECTABLE_PAYMENT_CATEGORIES = {
77        'schoolfee': 'School Fee (total amount)',
78        'schoolfee_1': 'School Fee (1st instalment)',
79        'secondinstal': 'School Fee (2nd instalment)',
80        'hostel':'Hostel Fee (1st instalment)',
81        'hostel_2':'Hostel Fee (2nd instalment)',
82        'resit': 'Resit Fee',
83        }
84
85    def selectable_payment_categories(self, student):
86        return self.SELECTABLE_PAYMENT_CATEGORIES
87
88    PREVIOUS_PAYMENT_CATEGORIES = {
89        'schoolfee': 'School Fee',
90        'hostel':'Hostel Fee',
91        }
92
93    REPORTABLE_PAYMENT_CATEGORIES = {
94        'schoolfee': 'School Fee',
95        }
96
97    BALANCE_PAYMENT_CATEGORIES = {
98        'schoolfee': 'School Fee',
99        'hostel':'Hostel Fee',
100        }
101
102    COMBI_PAYMENT_CATEGORIES = {
103        }
104
105    STUDY_MODES_DICT = {
106        'ug_ft': 'Undergraduate Full Time',
107        #'no': 'no application',
108        'basic_mid':'Basic Midwifery',
109        'basic_nurs':'Basic Nursing',
110        'post_mid':'Post Midwifery',
111        'post_nurs':'Post Nursing',
112        }
Note: See TracBrowser for help on using the repository browser.