source: main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py @ 18287

Last change on this file since 18287 was 18287, checked in by Henrik Bettermann, 4 months ago

Allow multiple plagtest payments.

  • Property svn:keywords set to Id
File size: 6.2 KB
Line 
1## $Id: utils.py 18287 2026-08-04 13:34:46Z 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    PAYMENT_CATEGORIES = {
28        'schoolfee': 'School Fee',
29        'clearance': 'Acceptance Fee',
30        'bed_allocation': 'Bed Reservation',
31        'hostel_maintenance': 'Hostel Fee',
32        #'transfer': 'Transfer Fee',
33        #'gown': 'Gown Hire Fee',
34        'application': 'Application Fee',
35        #'app_balance': 'Application Fee Balance',
36        'transcript': 'Transcript Fee',
37        'transcript_student': 'Transcript Fee Students Copy',
38        'transcript_local': 'Transcript Fee Local Copy',
39        'transcript_inter': 'Transcript Fee International Copy',
40        #'late_registration': 'Late Course Registration Fee',
41        #'combi': 'Combi Payment',
42        'med_reg':'Medical Registration Fee',
43        'teaching_practice':'Teaching Practice Fee',
44        'ijmb_exam':'IJMB Examination Fees',
45        'union': 'Student Union Due',
46        'siwes': 'SIWES',
47        'trcn_nce': 'NCE TRCN Induction / License Fees',
48        'trcn_degree': 'DEGREE TRCN Induction / License Fees',
49        'twohundred_ced': 'CED Registration Fee (200 Level)',
50        'threehundred_ced': 'CED Registration Fee (300 Level)',
51        'convocation': 'Convocation Fee',
52        'plagtest':   'Turnitin Plagiarism Checker 1',
53        'plagtest_2': 'Turnitin Plagiarism Checker 2',
54        'plagtest_3': 'Turnitin Plagiarism Checker 3',
55        'plagtest_4': 'Turnitin Plagiarism Checker 4',
56        'plagtest_5': 'Turnitin Plagiarism Checker 5',
57        'plagtest_6': 'Turnitin Plagiarism Checker 6',
58        'plagtest_7': 'Turnitin Plagiarism Checker 7',
59        'plagtest_8': 'Turnitin Plagiarism Checker 8',
60        'plagtest_9': 'Turnitin Plagiarism Checker 9',
61        'plagtest_10': 'Turnitin Plagiarism Checker 10',
62        'plagtest_11': 'Turnitin Plagiarism Checker 11',
63        'plagtest_12': 'Turnitin Plagiarism Checker 12',
64        'plagtest_13': 'Turnitin Plagiarism Checker 13',
65        'plagtest_14': 'Turnitin Plagiarism Checker 14',
66        'plagtest_15': 'Turnitin Plagiarism Checker 15',
67        'plagtest_16': 'Turnitin Plagiarism Checker 16',
68        'plagtest_17': 'Turnitin Plagiarism Checker 17',
69        'plagtest_18': 'Turnitin Plagiarism Checker 18',
70        'plagtest_19': 'Turnitin Plagiarism Checker 19',
71        'dsb': 'Digital Skills Training Fee',
72        }
73
74    SELECTABLE_PAYMENT_CATEGORIES = {
75        'schoolfee': 'School Fee',
76        'clearance': 'Acceptance Fee',
77        #'bed_allocation': 'Bed Reservation (free of charge)',
78        'hostel_maintenance': 'Hostel Fee',
79        'med_reg':'Medical Registration Fee',
80        'teaching_practice':'Teaching Practice Fee',
81        'ijmb_exam':'IJMB Examination Fees',
82        #'transcript': 'Transcript Fee',
83        'transcript_student': 'Transcript Fee Students Copy',
84        'transcript_local': 'Transcript Fee Local Copy',
85        'transcript_inter': 'Transcript Fee International Copy',
86        'siwes': 'SIWES',
87        #'union': 'Student Union Due',
88        'trcn_nce': 'NCE TRCN Induction / License Fees',
89        'trcn_degree': 'DEGREE TRCN Induction / License Fees',
90        'twohundred_ced': 'CED Registration Fee (200 Level)',
91        'threehundred_ced': 'CED Registration Fee (300 Level)',
92        'convocation': 'Convocation Fee',
93        'plagtest':   'Turnitin Plagiarism Checker 1',
94        'dsb': 'Digital Skills Training Fee',
95        }
96
97    def selectable_payment_categories(self, student):
98        return self.SELECTABLE_PAYMENT_CATEGORIES
99
100    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
101
102    DISABLE_PAYMENT_GROUP_DICT = {
103        'sf_all':    'School Fee - All',
104        'sf_ugft':   'School Fee - Undergraduate Full-Time',
105        }
106
107    COURSE_CATEGORY_DICT = {
108        'C':'Core Course (C)',
109        'R':'Required Courses (R)',
110        'E':'Elective Courses (E)',
111        }
112       
113    STUDY_MODES_DICT = {
114        'ug_ft': 'Undergraduate Full-Time',
115        'ug_pt': 'Undergraduate Part-Time',
116        'found': 'Foundation',
117        'dp_ft': 'Full-Time Diploma Programmes',
118        'dp_pt': 'Part-Time Diploma Programmes',
119        'de_ft': 'Direct Entry Full-Time Programmes',
120        'nce_ft': 'NCE Full-Time',
121        'nce_pt': 'NCE Part-Time',
122        'pde': 'Professional Diploma in Education Programmes',
123        'trc': 'TRCN Programmes',
124        'dsb': 'Digital Skill Boulevard Certificate Programmes',
125        }
126
127    APP_CATS_DICT = {
128        'basic': 'UAS, PUTME, PCE, PRENCE',
129        'basic_de': 'UAS, PUTME, PUDE, PCE, PRENCE',
130        'no': 'No Application',
131        'pre': 'Pre-Degree Programmes',
132        'jupeb': 'JUPEB Pre-Degree (Foundation) Programmes',
133        'ijmb': 'IJMB Foundation School Programmes',
134        'dp_ft': 'Full-Time Diploma Programmes',
135        'dp_pt': 'Part-Time Diploma Programmes',
136        'ug_pt': 'Undergraduate Part-Time Programmes',
137        'df': 'Digital Forensic for Professionals and Academia',
138        'law': 'Certificate in Law Programme',
139        'pde': 'Professional Diploma in Education Programmes',
140        'trcdeg': 'TRCN Degree Programmes',
141        'trcnce': 'TRCN NCE Programmes',
142        'dsb': 'Digital Skill Boulevard Certificate Programmes',
143        }
144
145    SPECIAL_HANDLING_DICT = {
146        'regular': 'Regular Hostel',
147        'blocked': 'Blocked Hostel',
148        'oyibu': 'Owa-Oyibu Campus Hostel',
149        'alero': 'Owa-Alero Campus Hostel',
150        }
Note: See TracBrowser for help on using the repository browser.