source: main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/utils/utils.py @ 17929

Last change on this file since 17929 was 16370, checked in by Henrik Bettermann, 4 years ago

Implement late school fee penalty fee payments.

  • Property svn:keywords set to Id
File size: 2.9 KB
Line 
1## $Id: utils.py 16370 2021-01-13 09:20:28Z 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 copy import deepcopy
21from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
22
23class CustomKofaUtils(NigeriaKofaUtils):
24    """A collection of methods subject to customization.
25    """
26
27    COURSE_CATEGORY_DICT = {
28        'C':'Core Course (C)',
29        #'R':'Required Courses (R)',
30        'E':'Elective Courses (E)',
31        }
32
33    APP_CATS_DICT = {
34        'basic': 'UTME, DE, PCE',
35        'no': 'No Application',
36        'degree': 'Degree Programme',
37        'nce': 'NCE Programme',
38        'ncept': 'NCE Part-Time Programme',
39        'nceptw': 'NCE Part-Time Weekend Programme',
40        'prence': 'Pre-NCE Programme',
41        'pdft':'Professional Diploma in Education',
42        'pdpt':'Professional Diploma in Education Weekend',
43        }
44
45    STUDY_MODES_DICT = {
46        'ug_ft': 'Undergraduate Full-Time',
47        'de_ft': 'Direct Entry Full-Time',
48        'pg_ft': 'Postgraduate Full-Time',
49        'pg_pt': 'Postgraduate Part-Time',
50        'nce_ft': 'NCE Full-Time',
51        'nce_pt': 'NCE Part-Time',
52        'nce_we_pt': 'NCE Part-Time Weekend',
53        'nce_sw': 'NCE Sandwich',
54        'prence': 'Pre-NCE',
55        'no': 'no application',
56        'pd_ft':'Professional Diploma in Education',
57        'pd_pt':'Professional Diploma in Education Weekend',
58        }
59
60    PAYMENT_CATEGORIES = {
61        'schoolfee': 'School Fee (total)',
62        'schoolfee_1': 'School Fee (1st instalment)',
63        'schoolfee_2': 'School Fee (2nd instalment)',
64        'clearance': 'Acceptance Fee',
65        #'bed_allocation': 'Bed Allocation Fee',
66        #'hostel_maintenance': 'Hostel Maintenance Fee',
67        #'transfer': 'Transfer Fee',
68        #'gown': 'Gown Hire Fee',
69        'application': 'Application Fee',
70        #'transcript': 'Transcript Fee',
71        #'late_registration': 'Late Course Registration Fee'
72        'lsfp_penalty': 'Late School Fee Payment Penalty Fee'
73        }
74
75    def selectable_payment_categories(self, student):
76        return self.PAYMENT_CATEGORIES
77
78    DISABLE_PAYMENT_GROUP_DICT = {
79        'sf_all': 'School Fee - All Students',
80        'degree': 'Degree Programme',
81        }
Note: See TracBrowser for help on using the repository browser.