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

Last change on this file since 17949 was 17925, checked in by Henrik Bettermann, 8 weeks ago

Iggara Campus Programmes

  • Property svn:keywords set to Id
File size: 6.7 KB
RevLine 
[10765]1## $Id: utils.py 17925 2024-09-13 10:08:18Z 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"""
[15011]20from copy import deepcopy
[10765]21from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
22
23class CustomKofaUtils(NigeriaKofaUtils):
24    """A collection of methods subject to customization.
25    """
26
[15074]27    APP_CATS_DICT = {
28        'basic': 'Basic Application',
29        'no': 'no application',
[15082]30        'ft': 'Full Time Courses',
31        'pt': 'Part Time Courses',
[15093]32        'pre': 'Pre-Degree Studies',
[15103]33        'ct': 'Certificate Programmes',
[15109]34        'ndft': 'National Diploma Full-Time Programmes',
35        'ndpt': 'National Diploma Part-Time Programmes',
36        'ndwe': 'National Diploma Weekend Programmes',
[15410]37        'nde': 'National Diploma Part-Time Evening Programmes',
[15109]38        'hndft': 'Higher National Diploma Full-Time Programmes',
39        'hndpt': 'Higher National Diploma Part-Time Programmes',
40        'hndwe': 'Higher National Diploma Weekend Programmes',
[15410]41        'hnde': 'Higher National Diploma Part-Time Evening Programmes',
[17925]42        'iggara': 'Iggara Campus Programmes',
[15109]43
[15074]44        }
45
[15011]46    PAYMENT_CATEGORIES = {
[15105]47        'schoolfee': 'Tuition/Exams Fee',
[15011]48        'clearance': 'Acceptance Fee',
49        'bed_allocation': 'Accommodation Booking Fee',
50        'hostel_maintenance': 'Hostel Maintenance Fee',
51        'application': 'Application Fee',
[15041]52        'ict_entre': 'ICT and Entrepreneur Fee',
[15013]53        'logbook_combo': 'Logbook Combo Fee',
[15015]54        'siwess_combo': 'SIWESS Combo Fee',
55        'transcript': 'Transcript Fee',
56        'certificate': 'Certificate Fee',
[15071]57        'certificate_confirm': 'Certificate Confirmation Fee',
58        'late_registration': 'Late Course Registration Fee',
59        'final_clearance': 'Final Clearance Fee',
[15105]60        'union': 'Student Union Dues',
[15123]61        'admission_checking': 'Admission Checking Fee',
[16324]62        'medical': 'Medical Laboratory Test Fee',
[17103]63        'conv_nd': 'Convocation Fee ND',
64        'conv_hnd': 'Convocation Fee HND',
[16325]65        'nhis': 'TISHIP Fee',
[15655]66        'coc': 'Change of Course Fee',
67        'damages': 'Damages Fee',
68        'project_bind': 'Project Binding Fee',
[16341]69        'maintenance':'Maintenance and Utility Fees',
[16820]70        'cyber': 'Cyber Security',
71        'ispon': 'ISPON Safety',
[17104]72        'indigene': 'Non-State Indigene Fee',
73        'develop': 'Development Fee',
74        'sport': 'Sport Development Fee',
[17635]75        'gown': 'Matriculation Gown Fee',
76        'global_practics': 'Global Practics Fee',
[15011]77        }
78
[15218]79    SELECTABLE_PAYMENT_CATEGORIES = {
80        'schoolfee': 'Tuition/Exams Fee',
81        'clearance': 'Acceptance Fee',
82        'bed_allocation': 'Accommodation Booking Fee',
83        'hostel_maintenance': 'Hostel Maintenance Fee',
84        'application': 'Application Fee',
85        'ict_entre': 'ICT and Entrepreneur Fee',
86        'logbook_combo': 'Logbook Combo Fee',
87        'siwess_combo': 'SIWESS Combo Fee',
[17569]88        #'transcript': 'Transcript Fee',
[15218]89        'certificate': 'Certificate Fee',
90        'certificate_confirm': 'Certificate Confirmation Fee',
91        'late_registration': 'Late Course Registration Fee',
92        'final_clearance': 'Final Clearance Fee',
93        'union': 'Student Union Dues',
94        'admission_checking': 'Admission Checking Fee',
[16324]95        'medical': 'Medical Laboratory Test Fee',
[17103]96        'conv_nd': 'Convocation Fee ND',
97        'conv_hnd': 'Convocation Fee HND',
[17569]98        #'nhis': 'TISHIP Fee',
[15655]99        'coc': 'Change of Course Fee',
100        'damages': 'Damages Fee',
101        'project_bind': 'Project Binding Fee',
[16341]102        'maintenance':'Maintenance and Utility Fees',
[16820]103        'cyber': 'Cyber Security',
104        'ispon': 'ISPON Safety',
[17104]105        'indigene': 'Non-State Indigene Fee',
106        'develop': 'Development Fee',
[17635]107        'sport': 'Sport Development Fee',
108        'gown': 'Matriculation Gown Fee',
109        'global_practics': 'Global Practics Fee',
[15218]110        }
[15441]111
112    def selectable_payment_categories(self, student):
[15445]113        spc = deepcopy(self.SELECTABLE_PAYMENT_CATEGORIES)
[15442]114        if not student.is_fresh:
115            del spc['application']
116            del spc['admission_checking']
117            del spc['clearance']
[17703]118        if student.current_mode == 'hnd_ft':
[17704]119            del spc['logbook_combo']
[15442]120        return spc
[15441]121
[15193]122    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
123
[15028]124    BALANCE_PAYMENT_CATEGORIES = {
[15105]125        'schoolfee': 'Tuition/Exams Fee',
[15041]126        'ict_entre': 'ICT and Entrepreneur Fee',
[15071]127        'certificate_confirm': 'Certificate Confirmation Fee',
128        'final_clearance': 'Final Clearance Fee',
[15034]129        }
130
131    REPORTABLE_PAYMENT_CATEGORIES = {
[15082]132        'schoolfee': 'Tuition Exams Fee',
133        'clearance': 'Accept. Fee',
134        'hostel_maintenance': 'Hostel Maint. Fee',
135        'ict_entre': 'ICT Entrepr. Fee',
[15034]136        'logbook_combo': 'Logbook Combo Fee',
137        'siwess_combo': 'SIWESS Combo Fee',
[15082]138        'certificate': 'Cert. Fee',
139        'certificate_confirm': 'Cert. Confirm. Fee',
140        'late_registration': 'Late Course Registr. Fee',
[15071]141        'final_clearance': 'Final Clearance Fee',
[15105]142        'union': 'Student Union Dues',
[16324]143        'medical': 'Medical Laboratory Test Fee',
[15069]144        }
145
[15218]146    SPECIAL_APP_DICT = {
147        'conv_nd': 'Convocation ND',
148        'conv_hnd': 'Convocation HND',
149        }
150
[15069]151    STUDY_MODES_DICT = {
[15073]152        'ug_ft': 'Undergraduate Full Time (not used in EdoPoly)',
[15109]153        'nd_ft': 'National Diploma Full-Time',
154        'nd_pt': 'National Diploma Part-Time',
155        'nd_we': 'National Diploma Weekend',
156        'hnd_ft': 'Higher National Diploma Full-Time',
157        'hnd_pt': 'Higher National Diploma Part-Time',
158        'hnd_we': 'Higher National Diploma Weekend',
[15103]159        'ct': 'Certificate',
[15093]160        'pre': 'Pre-Degree',
[15069]161        'transfer': 'Transfer',
162        'no': 'no application',
163        }
164
165    MODE_GROUPS = {
166        'All': ('all',),
[17389]167        'National Diploma Full-Time': ('nd_ft',),
168        'National Diploma Part-Time': ('nd_pt',),
169        'Higher National Diploma Full-Time': ('hnd_ft',),
170        'Higher National Diploma Part-Time': ('hnd_pt',),
171        'Certificate': ('ct',),
172        'Pre-Degree': ('pre',),
[15069]173        }
Note: See TracBrowser for help on using the repository browser.