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

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

Customize _isPaymentDisabled.

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