source: main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/utils/utils.py @ 15074

Last change on this file since 15074 was 15074, checked in by Henrik Bettermann, 6 years ago

Deduct Student Union Dues from Tution Fee.

Start customizing application category.

  • Property svn:keywords set to Id
File size: 4.6 KB
Line 
1## $Id: utils.py 15074 2018-07-03 05:47:49Z 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    APP_CATS_DICT = {
28        'basic': 'Basic Application',
29        'no': 'no application',
30        'pg': 'Postgraduate',
31        'sandwich': 'Sandwich',
32        'cest': 'Part-Time, Diploma, Certificate'
33        }
34
35    PAYMENT_CATEGORIES = {
36        'schoolfee': 'Tuition and Exams Fee',
37        'clearance': 'Acceptance Fee',
38        'bed_allocation': 'Accommodation Booking Fee',
39        'hostel_maintenance': 'Hostel Maintenance Fee',
40        'application': 'Application Fee',
41        'ict_entre': 'ICT and Entrepreneur Fee',
42        'logbook_combo': 'Logbook Combo Fee',
43        'siwess_combo': 'SIWESS Combo Fee',
44        'transcript': 'Transcript Fee',
45        'certificate': 'Certificate Fee',
46        'certificate_confirm': 'Certificate Confirmation Fee',
47        'late_registration': 'Late Course Registration Fee',
48        'final_clearance': 'Final Clearance Fee',
49        }
50
51    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
52
53    BALANCE_PAYMENT_CATEGORIES = {
54        'schoolfee': 'Tuition and Exams Fee',
55        'ict_entre': 'ICT and Entrepreneur Fee',
56        'certificate_confirm': 'Certificate Confirmation Fee',
57        'final_clearance': 'Final Clearance Fee',
58        }
59
60    REPORTABLE_PAYMENT_CATEGORIES = {
61        'schoolfee': 'Tuition and Exams Fee',
62        'clearance': 'Acceptance Fee',
63        #'bed_allocation': 'Accommodation Booking Fee',
64        'hostel_maintenance': 'Hostel Maintenance Fee',
65        'ict_entre': 'ICT and Entrepreneur Fee',
66        'logbook_combo': 'Logbook Combo Fee',
67        'siwess_combo': 'SIWESS Combo Fee',
68        #'transcript': 'Transcript Fee',
69        'certificate': 'Certificate Fee',
70        'certificate_confirm': 'Certificate Confirmation Fee',
71        'late_registration': 'Late Course Registration Fee',
72        'final_clearance': 'Final Clearance Fee',
73        }
74
75    STUDY_MODES_DICT = {
76        #'ume_ft': 'UME Full Time',
77        'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)',
78        #'ug_pt': 'Undergraduate Part Time',
79        #'dp_pt': 'Diploma Part Time',
80        #'ct_ft': 'Certificate Full Time',
81        #'dp_ft': 'Diploma Full Time',
82        #'de_ft': 'Direct Entry Full Time',
83        #'de_pt': 'Direct Entry Part Time',
84        'nd_ft': 'National Diploma Full Time',
85        'nd_pt': 'National Diploma Part Time',
86        'hnd_ft': 'Higher National Diploma Full Time',
87        'hnd_pt': 'Higher National Diploma Part Time',
88        #'pg_ft': 'Postgraduate Full Time',
89        #'pg_pt': 'Postgraduate Part Time',
90        #'pgd_ft': 'Postgraduate Diploma Full Time',
91        #'pgd_pt': 'Postgraduate Diploma Part Time',
92        #'special_pg_pt': 'Special Postgraduate Part Time',
93        #'nce_ft': 'NCE Full Time',
94        #'nce_pt': 'NCE Part Time',
95        #'ug_sw': 'Undergraduate Sandwich',
96        #'nce_sw': 'NCE Sandwich',
97        #'jm_ft': 'Joint Matriculation Full Time',
98        #'ph_ft': 'Post Higher Education Full Time',
99        #'transfer_pt': 'Transfer Part Time',
100        #'transfer_ft': 'Transfer Full Time',
101        #'ct_pt': 'Certificate Part Time',
102        #'rmd_ft': 'Remedial with deficiencies',
103        #'rm_ft': 'Remedial',
104        'transfer': 'Transfer',
105        #'prence': 'Pre-NCE',
106        #'prend': 'Pre-ND',
107        #'pce': 'PCE',
108        #'pd_ft': 'Professional Diploma in Education',
109        #'found': 'Foundation',
110        'no': 'no application',
111        }
112
113    MODE_GROUPS = {
114        'All': ('all',),
115        'Undergraduate Full-Time': ('hnd_ft', 'nd_ft'),
116        'Undergraduate Part-Time': ('hnd_pt', 'nd_pt'),
117        #'Postgraduate Full-Time': ('pg_ft',),
118        #'Postgraduate Part-Time': ('pg_pt',),
119        }
Note: See TracBrowser for help on using the repository browser.