source: main/kofacustom.dspg/trunk/src/kofacustom/dspg/utils/utils.py @ 16799

Last change on this file since 16799 was 16563, checked in by Henrik Bettermann, 3 years ago

Add PAD Pack.

  • Property svn:keywords set to Id
File size: 11.4 KB
Line 
1## $Id: utils.py 16563 2021-08-03 09:13:52Z 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
26    APP_CATS_DICT = {
27        'basic': 'Basic',
28        'ndft': 'National Diploma Full-Time Programmes',
29        'ndpt': 'National Diploma Part-Time Programmes',
30        'ndwe': 'National Diploma Weekend Programmes',
31        'hndft': 'Higher National Diploma Full-Time Programmes',
32        'hndpt': 'Higher National Diploma Part-Time Programmes',
33        'hndwe': 'Higher National Diploma Weekend Programmes',
34        'pgd': 'Postgraduate Diploma Programmes',
35        'rmd': 'Remedial Programmes',
36        'no': 'no application',
37        }
38
39    STUDY_MODES_DICT = {
40        'transfer': 'Transfer',
41        'ug_ft': 'Undergraduate Full Time',
42        'ug_pt': 'Undergraduate Part Time',
43        'nd_ft': 'National Diploma Full-Time',
44        'nd_pt': 'National Diploma Part-Time',
45        'nd_we': 'National Diploma Weekend',
46        'hnd_ft': 'Higher National Diploma Full-Time',
47        'hnd_pt': 'Higher National Diploma Part-Time',
48        'hnd_we': 'Higher National Diploma Weekend',
49        'pgd_ft': 'Postgraduate Diploma Full-Time',
50        'pgd_pt': 'Postgraduate Diploma Part-Time',
51        'prend': 'Pre-ND',
52        'rmd': 'Remedial',
53        }
54
55    PAYMENT_CATEGORIES = {
56        'clearance': 'Acceptance/Screening',
57        'schoolfee': 'School Fee',
58        'dep_sug':'NADESU/SA/SUG', # is not a special paynent
59        'carryover1': '1, 2 or 3 Carry-Over Courses',
60        'carryover4': '4 Carry-Over Courses',
61        'carryover5': '5 Carry-Over Courses',
62        'carryover6': '6 Carry-Over Courses',
63        'carryover7': '7 Carry-Over Courses',
64        'carryover8': '8 Carry-Over Courses',
65        'carryover9': '9 Carry-Over Courses',
66        'carryover10': '10 Carry-Over Courses',
67        'carryover11': '11 Carry-Over Courses',
68        'carryover12': '12 Carry-Over Courses',
69        'balance': 'Balance Payment',
70        'bed_allocation': 'Bed Allocation',
71        'hostel_maintenance': 'Hostel Maintenance',
72        'application': 'Application',
73        'certificate': 'ND Certificate',
74        'hnd_certificate': 'HND Certificate',
75        'pgd_certificate': 'PGD Certificate',
76        'state_result': 'ND Statement of Result',
77        'hnd_state_result': 'HND Statement of Result',
78        'pgd_state_result': 'PGD Statement of Result',
79        'transcript_local': 'ND Transcript (local)',
80        'hnd_transcript_local': 'HND Transcript (local)',
81        'pgd_transcript_local': 'PGD Transcript (local)',
82        'transcript_foreign': 'ND Transcript (foreign)',
83        'hnd_transcript_foreign': 'HND Transcript (foreign)',
84        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
85        'ver_result': 'Verification of Result',
86        'change_course': 'Change of Course',
87        'change_inst': 'Change of Institute',
88        'jamb_reject': 'JAMB Rejection Form',
89        'cert_of_cert': 'Certification of Certificate',
90        'ref_let': 'Recommendation/Reference Letter',
91        'proc_cert': 'Processing of Certificate by Proxy',
92        'loss_idcard': 'Loss of ID Card (student)',
93        'staff_loss_idcard': 'Loss of ID Card (staff)',
94        'loss_examcard': 'Loss of Exam Card',
95        'loss_result': 'Loss of Result',
96        'loss_receipt': 'Loss of Receipt',
97        'loss_clearance': 'Loss of Clearance',
98        'conv_brochure': 'ND Convocation Brochure',
99        'hnd_conv_brochure': 'HND Convocation Brochure',
100        'pgd_conv_brochure': 'PGD Convocation Brochure',
101        'log_book': 'Log Book',
102        'jamb_regularization': 'Jamb Regularization',
103        'utme_registration': 'UTME Registration',
104        'utme_cbt': 'UTME CBT',
105        'nysc_id_card': 'NYSC ID Card',
106        'ijmb_result':'IJMB Result',
107        'gown': 'Gown Hire Fee',
108        'sports': 'Sports Clearance Levy',
109        'siwes': 'SIWES Fee',
110        'eed_1': 'EED 1 Fee',
111        'eed_2': 'EED 2 Fee',
112        'eed_extra': 'EED Extra Fee',
113        'olevel_results_1': 'O Level Results Verification 1',
114        'olevel_results_2': 'O Level Results Verification 2',
115        'eng_1':'School of Engineering Dues I',
116        'eng_2':'School of Engineering Dues II',
117        'sbs_1':'SBS Pack I',
118        'sbs_2':'SBS Pack II',
119        'gns_1':'GNS Pack I',
120        'gns_2':'GNS Pack II',
121        'bfn':'BFN Pack',
122        'mkt':'MKT Pack',
123        'mcn':'MCN Pack',
124        'otm':'OTM Pack',
125        'acct':'ACCT Pack',
126        'bam':'BAM Pack',
127        'pom':'POM Pack',
128        'hrm':'HRM Pack',
129        'sas_1':'SAS Pack I',
130        'sas_2':'SAS Pack II',
131        'com':'COM Pack',
132        'sta':'STA Pack',
133        'slt_1':'SLT Pack I',
134        'slt_2':'SLT Pack II',
135        'lis':'LIS Pack',
136        'htm':'HTM Pack',
137        'hndgrad':'HND Final Clearance Pack',
138        'ndgrad':'ND Final Clearance Pack',
139        'lsfp_penalty':'Late School Fee Payment Penalty',
140        'conv':'Convocation Pack',
141        'facilities':'Facilities Upgrade',
142        'pa':'PAD Pack',
143        }
144
145    SELECTABLE_PAYMENT_CATEGORIES = {
146        'clearance': 'Acceptance/Screening',
147        'schoolfee': 'School Fee',
148        'dep_sug':'NADESU/SA/SUG',
149        'gown': 'Gown Hire Fee',
150        #'carryover1': 'One Carry-Over',
151        #'carryover2': 'Two Carry-Overs',
152        #'carryover3': 'Three Carry-Overs',
153        #'carryover4': 'Four Carry-Overs',
154        'hostel_maintenance': 'Hostel Maintenance',
155        #'certificate': 'ND Certificate',
156        #'hnd_certificate': 'HND Certificate',
157        #'pgd_certificate': 'PGD Certificate',
158        #'state_result': 'ND Statement of Result',
159        #'hnd_state_result': 'HND Statement of Result',
160        #'pgd_state_result': 'PGD Statement of Result',
161        #'transcript_local': 'ND Transcript (local)',
162        #'hnd_transcript_local': 'HND Transcript (local)',
163        #'pgd_transcript_local': 'PGD Transcript (local)',
164        #'transcript_foreign': 'ND Transcript (foreign)',
165        #'hnd_transcript_foreign': 'HND Transcript (foreign)',
166        #'pgd_transcript_foreign': 'PGD Transcript (foreign)',
167        #'ver_result': 'Verification of Result',
168        'change_course': 'Change of Course',
169        #'change_inst': 'Change of Institute',
170        #'jamb_reject': 'JAMB Rejection Form',
171        #'cert_of_cert': 'Certification of Certificate',
172        #'ref_let': 'Recommendation/Reference Letter',
173        #'proc_cert': 'Processing of Certificate by Proxy',
174        #'loss_idcard': 'Loss of ID Card (student)',
175        #'staff_loss_idcard': 'Loss of ID Card (staff)',
176        #'loss_examcard': 'Loss of Exam Card',
177        #'loss_result': 'Loss of Result',
178        #'loss_receipt': 'Loss of Receipt',
179        #'loss_clearance': 'Loss of Clearance',
180        #'conv_brochure': 'ND Convocation Brochure',
181        #'hnd_conv_brochure': 'HND Convocation Brochure',
182        #'pgd_conv_brochure': 'PGD Convocation Brochure',
183        #'log_book': 'Log Book',
184        #'jamb_regularization': 'Jamb Regularization',
185        #'utme_registration': 'UTME Registration',
186        #'utme_cbt': 'UTME CBT',
187        #'nysc_id_card': 'NYSC ID Card',
188        #'ijmb_result':'IJMB Result',
189        'sports': 'Sports Clearance Levy',
190        'siwes': 'SIWES Fee',
191        'eed_1': 'EED 1 Fee',
192        'eed_2': 'EED 2 Fee',
193        'eed_extra': 'EED Extra Fee',
194        'olevel_results_1': 'O Level Results Verification 1',
195        'olevel_results_2': 'O Level Results Verification 2',
196        'eng_1':'School of Engineering Dues I',
197        'eng_2':'School of Engineering Dues II',
198        'sbs_1':'SBS Pack I',
199        'sbs_2':'SBS Pack II',
200        'gns_1':'GNS Pack I',
201        'gns_2':'GNS Pack II',
202        'bfn':'BFN Pack',
203        'mkt':'MKT Pack',
204        'mcn':'MCN Pack',
205        'otm':'OTM Pack',
206        'acct':'ACCT Pack',
207        'bam':'BAM Pack',
208        'pom':'POM Pack',
209        'hrm':'HRM Pack',
210        'sas_1':'SAS Pack I',
211        'sas_2':'SAS Pack II',
212        'com':'COM Pack',
213        'sta':'STA Pack',
214        'slt_1':'SLT Pack I',
215        'slt_2':'SLT Pack II',
216        'lis':'LIS Pack',
217        'htm':'HTM Pack',
218        'hndgrad':'HND Final Clearance Pack',
219        'ndgrad':'ND Final Clearance Pack',
220        'lsfp_penalty':'Late School Fee Payment Penalty',
221        'conv':'Convocation Pack',
222        'facilities':'Facilities Upgrade',
223        'pa':'PAD Pack',
224        }
225
226    def selectable_payment_categories(self, student):
227        return self.SELECTABLE_PAYMENT_CATEGORIES
228
229    SPECIAL_APP_DICT = {
230        'certificate': 'ND Certificate',
231        'hnd_certificate': 'HND Certificate',
232        'pgd_certificate': 'PGD Certificate',
233        'state_result': 'ND Statement of Result',
234        'hnd_state_result': 'HND Statement of Result',
235        'pgd_state_result': 'PGD Statement of Result',
236        'transcript_local': 'ND Transcript (local)',
237        'hnd_transcript_local': 'HND Transcript (local)',
238        'pgd_transcript_local': 'PGD Transcript (local)',
239        'transcript_foreign': 'ND Transcript (foreign)',
240        'hnd_transcript_foreign': 'HND Transcript (foreign)',
241        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
242        'ver_result': 'Verification of Result',
243        'change_course': 'Change of Course',
244        'change_inst': 'Change of Institute',
245        'jamb_reject': 'JAMB Rejection Form',
246        'cert_of_cert': 'Certification of Certificate',
247        'ref_let': 'Recommendation/Reference Letter',
248        'proc_cert': 'Processing of Certificate by Proxy',
249        'loss_idcard': 'Loss of ID Card (student)',
250        'staff_loss_idcard': 'Loss of ID Card (staff)',
251        'loss_examcard': 'Loss of Exam Card',
252        'loss_result': 'Loss of Result',
253        'loss_receipt': 'Loss of Receipt',
254        'loss_clearance': 'Loss of Clearance',
255        'conv_brochure': 'ND Convocation Brochure',
256        'hnd_conv_brochure': 'HND Convocation Brochure',
257        'pgd_conv_brochure': 'PGD Convocation Brochure',
258        'log_book': 'Log Book',
259        'jamb_regularization': 'Jamb Regularization',
260        'utme_registration': 'UTME Registration',
261        'utme_cbt': 'UTME CBT',
262        'nysc_id_card': 'NYSC ID Card',
263        'ijmb_result':'IJMB Result',
264        'carryover1': '01, 02 or 03 Carry-Over Courses',
265        'carryover4': '04 Carry-Over Courses',
266        'carryover5': '05 Carry-Over Courses',
267        'carryover6': '06 Carry-Over Courses',
268        'carryover7': '07 Carry-Over Courses',
269        'carryover8': '08 Carry-Over Courses',
270        'carryover9': '09 Carry-Over Courses',
271        'carryover10': '10 Carry-Over Courses',
272        'carryover11': '11 Carry-Over Courses',
273        'carryover12': '12 Carry-Over Courses',
274        'balance': 'Balance Payment',
275        'conv':'Convocation Pack',
276        }
Note: See TracBrowser for help on using the repository browser.