source: main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/utils/utils.py @ 11884

Last change on this file since 11884 was 11759, checked in by Henrik Bettermann, 10 years ago

Fix: Special payment fee attributes must end with '_fee'.

  • Property svn:keywords set to Id
File size: 7.4 KB
RevLine 
[7569]1## $Id: utils.py 11759 2014-07-14 13:34:34Z 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##
[7822]18"""Customize general helper utilities for Kofa.
[7569]19"""
[8834]20from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
[7569]21
[8834]22class CustomKofaUtils(NigeriaKofaUtils):
[7569]23    """A collection of methods subject to customization.
24    """
[7845]25
26    PREFERRED_LANGUAGES_DICT = {
27        }
[9361]28
29    APP_CATS_DICT = {
30        'basic': 'Basic',
[10133]31        'ndft': 'National Diploma Full-Time Programmes',
32        'ndpt': 'National Diploma Part-Time Programmes',
33        'hndft': 'Higher National Diploma Full-Time Programmes',
34        'hndpt': 'Higher National Diploma Part-Time Programmes',
[10121]35        'pgd': 'Postgraduate Diploma Programmes',
[10133]36        'rmd': 'Remedial Programmes',
[10844]37        'no': 'no application',
[9361]38        }
39
40    STUDY_MODES_DICT = {
[10133]41        'nd_ft': 'National Diploma Full-Time',
42        'nd_pt': 'National Diploma Part-Time',
43        'hnd_ft': 'Higher National Diploma Full-Time',
44        'hnd_pt': 'Higher National Diploma Part-Time',
45        'pgd_ft': 'Postgraduate Diploma Full-Time',
46        'pgd_pt': 'Postgraduate Diploma Part-Time',
[10778]47        'prend': 'Pre-ND',
[10133]48        'rmd': 'Remedial',
[9724]49        }
50
51    PAYMENT_CATEGORIES = {
52        'schoolfee': 'School Fee',
[9737]53        'carryover1': '1 CarryOver',
54        'carryover2': '2 CarryOvers',
55        'carryover3': '3 CarryOvers',
[9724]56        'clearance': 'Acceptance Fee',
57        'bed_allocation': 'Bed Allocation Fee',
58        'hostel_maintenance': 'Hostel Maintenance Fee',
[10734]59        'application': 'Application Fee',
[11629]60        'certificate': 'ND Certificate',
61        'hnd_certificate': 'HND Certificate',
[11683]62        'pgd_certificate': 'PGD Certificate',
[11629]63        'state_result': 'ND Statement of Result',
64        'hnd_state_result': 'HND Statement of Result',
[11683]65        'pgd_state_result': 'PGD Statement of Result',
[11629]66        'transcript_local': 'ND Transcript (local)',
67        'hnd_transcript_local': 'HND Transcript (local)',
[11758]68        'pgd_transcript_local': 'PGD Transcript (local)',
[11629]69        'transcript_foreign': 'ND Transcript (foreign)',
70        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]71        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10734]72        'ver_result': 'Verification of Result',
73        'change_course': 'Change of Course',
74        'change_inst': 'Change of Institute',
75        'jamb_reject': 'JAMB Rejection Form',
76        'cert_of_cert': 'Certification of Certificate',
77        'ref_let': 'Recommendation/Reference Letter',
78        'proc_cert': 'Processing of Certificate by Proxy',
[11629]79        'loss_idcard': 'Loss of ID Card (student)',
80        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10734]81        'loss_examcard': 'Loss of Exam Card',
82        'loss_result': 'Loss of Result',
83        'loss_receipt': 'Loss of Receipt',
84        'loss_clearance': 'Loss of Clearance',
[11629]85        'conv_brochure': 'ND Convocation Brochure',
86        'hnd_conv_brochure': 'HND Convocation Brochure',
[11683]87        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11759]88        'log_book': 'Log Book Fees',
[11758]89        'jamb_regularization': 'Jamb Regularization',
[9737]90        }
91
92    SELECTABLE_PAYMENT_CATEGORIES = {
93        'schoolfee': 'School Fee',
94        'carryover1': 'One CarryOver',
95        'carryover2': 'Two CarryOvers',
96        'carryover3': 'Three CarryOvers',
97        'hostel_maintenance': 'Hostel Maintenance Fee',
[11629]98        'certificate': 'ND Certificate',
99        'hnd_certificate': 'HND Certificate',
[11684]100        'pgd_certificate': 'PGD Certificate',
[11629]101        'state_result': 'ND Statement of Result',
102        'hnd_state_result': 'HND Statement of Result',
[11684]103        'pgd_state_result': 'PGD Statement of Result',
[11629]104        'transcript_local': 'ND Transcript (local)',
105        'hnd_transcript_local': 'HND Transcript (local)',
[11758]106        'pgd_transcript_local': 'PGD Transcript (local)',
[11629]107        'transcript_foreign': 'ND Transcript (foreign)',
108        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]109        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10734]110        'ver_result': 'Verification of Result',
111        'change_course': 'Change of Course',
112        'change_inst': 'Change of Institute',
113        'jamb_reject': 'JAMB Rejection Form',
114        'cert_of_cert': 'Certification of Certificate',
115        'ref_let': 'Recommendation/Reference Letter',
116        'proc_cert': 'Processing of Certificate by Proxy',
[11629]117        'loss_idcard': 'Loss of ID Card (student)',
118        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10734]119        'loss_examcard': 'Loss of Exam Card',
120        'loss_result': 'Loss of Result',
121        'loss_receipt': 'Loss of Receipt',
122        'loss_clearance': 'Loss of Clearance',
[11629]123        'conv_brochure': 'ND Convocation Brochure',
124        'hnd_conv_brochure': 'HND Convocation Brochure',
[11684]125        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11759]126        'log_book': 'Log Book Fees',
[11758]127        'jamb_regularization': 'Jamb Regularization',
[10820]128        }
129
[11453]130    DISABLE_PAYMENT_GROUP_DICT = {
131        'sf_all': 'School Fee - All Students',
132        'sf_non_pg': 'School Fee - Non-PG Students',
133        }
134
[10820]135    SPECIAL_HANDLING_DICT = {
136        'regular': 'Regular Hostel',
137        'blocked': 'Blocked Hostel',
138        'pg': 'Postgraduate Hostel',
139        'itch': 'ITCH Hostel'
[10844]140        }
141
142    SPECIAL_APP_DICT = {
[11663]143        'certificate': 'ND Certificate',
144        'hnd_certificate': 'HND Certificate',
[11685]145        'pgd_certificate': 'PGD Certificate',
[11663]146        'state_result': 'ND Statement of Result',
147        'hnd_state_result': 'HND Statement of Result',
[11685]148        'pgd_state_result': 'PGD Statement of Result',
[11663]149        'transcript_local': 'ND Transcript (local)',
150        'hnd_transcript_local': 'HND Transcript (local)',
[11758]151        'pgd_transcript_local': 'PGD Transcript (local)',
[11663]152        'transcript_foreign': 'ND Transcript (foreign)',
153        'hnd_transcript_foreign': 'HND Transcript (foreign)',
[11758]154        'pgd_transcript_foreign': 'PGD Transcript (foreign)',
[10844]155        'ver_result': 'Verification of Result Payment',
156        'change_course': 'Change of Course Payment',
157        'change_inst': 'Change of Institute Payment',
158        'jamb_reject': 'JAMB Rejection Form Payment',
159        'cert_of_cert': 'Certification of Certificate Payment',
160        'ref_let': 'Recommendation/Reference Letter Payment',
161        'proc_cert': 'Processing of Certificate by Proxy Payment',
[11663]162        'loss_idcard': 'Loss of ID Card (student)',
163        'staff_loss_idcard': 'Loss of ID Card (staff)',
[10844]164        'loss_examcard': 'Loss of Exam Card Payment',
165        'loss_result': 'Loss of Result Payment',
166        'loss_receipt': 'Loss of Receipt Payment',
167        'loss_clearance': 'Loss of Clearance Payment',
[11663]168        'conv_brochure': 'ND Convocation Brochure',
169        'hnd_conv_brochure': 'HND Convocation Brochure',
[11685]170        'pgd_conv_brochure': 'PGD Convocation Brochure',
[11759]171        'log_book': 'Log Book Fees',
[11758]172        'jamb_regularization': 'Jamb Regularization',
[9361]173        }
Note: See TracBrowser for help on using the repository browser.