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

Last change on this file since 17238 was 17209, checked in by Henrik Bettermann, 22 months ago

Remove more.

  • Property svn:keywords set to Id
File size: 3.5 KB
Line 
1## $Id: utils.py 17209 2022-12-08 09:29:32Z 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 (66% - 1st instalment)',
60        'secondinstal': 'School Fee (34% - 2nd instalment)',
61        'clearance': 'Acceptance Fee',
62        'hostel':'Hostel Fee',
63        #'bed_allocation': 'Bed Allocation Fee',
64        #'hostel_maintenance': 'Hostel Maintenance Fee',
65        #'transfer': 'Transfer Fee',
66        #'gown': 'Gown Hire Fee',
67        'application': 'Application Fee',
68        #'app_balance': 'Application Fee Balance',
69        'transcript': 'Transcript Fee',
70        #'late_registration': 'Late Course Registration Fee',
71        #'combi': 'Combi Payment',
72        }
73
74    SELECTABLE_PAYMENT_CATEGORIES = {
75        'schoolfee': 'School Fee (total amount)',
76        'schoolfee_1': 'School Fee (66% - 1st instalment)',
77        'secondinstal': 'School Fee (34% - 2nd instalment)',
78        'hostel':'Hostel Fee',
79        }
80
81    def selectable_payment_categories(self, student):
82        return self.SELECTABLE_PAYMENT_CATEGORIES
83
84    PREVIOUS_PAYMENT_CATEGORIES = {
85        'schoolfee': 'School Fee',
86        'hostel':'Hostel Fee',
87        }
88
89    REPORTABLE_PAYMENT_CATEGORIES = {
90        'schoolfee': 'School Fee',
91        }
92
93    BALANCE_PAYMENT_CATEGORIES = {
94        'schoolfee': 'School Fee',
95        'hostel':'Hostel Fee',
96        }
97
98    COMBI_PAYMENT_CATEGORIES = {
99        }
100
101    STUDY_MODES_DICT = {
102        'ug_ft': 'Undergraduate Full Time',
103        #'no': 'no application',
104        'basic_mid':'Basic Midwifery',
105        'basic_nurs':'Basic Nursing',
106        'post_mid':'Post Midwifery',
107        'post_nurs':'Post Nursing',
108        }
Note: See TracBrowser for help on using the repository browser.