source: main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interfaces.py @ 11737

Last change on this file since 11737 was 11683, checked in by Henrik Bettermann, 11 years ago

More special payment fee categories added.

  • Property svn:keywords set to Id
File size: 6.9 KB
RevLine 
[7419]1## $Id: interfaces.py 11683 2014-06-11 14:38:25Z henrik $
[6923]2##
[7419]3## Copyright (C) 2011 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##
[7695]18
19import zope.i18nmessageid
[6923]20from zope import schema
[8504]21from zc.sourcefactory.basic import BasicSourceFactory
[8071]22from waeup.kofa.interfaces import (SimpleKofaVocabulary,
[7505]23    ISessionConfiguration, academic_sessions_vocab)
[6923]24
[9347]25_ = MessageFactory = zope.i18nmessageid.MessageFactory('waeup.kwarapoly')
[7695]26
[7021]27# It's recommended to replicate all fields from the base package here.
[8204]28class ICustomSessionConfiguration(ISessionConfiguration):
[6923]29    """A session configuration object.
30    """
31
[7880]32    # Base fees, do not remove.
33
[7928]34    school_fee_base = schema.Float(
[7695]35        title = _(u'School Fee (ignored)'),
[7928]36        default = 0.0,
[11623]37        required = True,
[6923]38        )
39
[8263]40    application_fee = schema.Float(
[8537]41        title = _(u'Application Fee (fallback)'),
[7928]42        default = 0.0,
[11623]43        required = True,
[6923]44        )
45
[7928]46    clearance_fee = schema.Float(
[9143]47        title = _(u'Clearance Fee'),
[7928]48        default = 0.0,
[11623]49        required = True,
[6923]50        )
51
[7928]52    booking_fee = schema.Float(
[7695]53        title = _(u'Booking Fee'),
[7928]54        default = 0.0,
[11623]55        required = True,
[6923]56        )
57
[8441]58    # Additional fees in custom package
[7880]59
[7928]60    maint_fee = schema.Float(
[10682]61        title = _(u'Maintenance Fee (fallback)'),
[7928]62        default = 0.0,
[11623]63        required = True,
[6950]64        )
[9317]65    gown_fee = schema.Float(
[7695]66        title = _(u'Gown Fee'),
[7928]67        default = 0.0,
[11623]68        required = True,
[7021]69        )
[9317]70    transfer_fee = schema.Float(
[7695]71        title = _(u'Transfer Fee'),
[7928]72        default = 0.0,
[11623]73        required = True,
[7021]74        )
[10734]75    certificate_fee = schema.Float(
[11678]76        title = _(u'ND Certificate Fee'),
[10734]77        default = 0.0,
[11623]78        required = True,
[10734]79        )
[11678]80    hnd_certificate_fee = schema.Float(
81        title = _(u'HND Certificate Fee'),
82        default = 0.0,
83        required = True,
84        )
[11683]85    pgd_certificate_fee = schema.Float(
86        title = _(u'PGD Certificate Fee'),
87        default = 0.0,
88        required = True,
89        )
[10734]90    state_result_fee = schema.Float(
[11629]91        title = _(u'ND Statement of Result Fee'),
[10734]92        default = 0.0,
[11623]93        required = True,
[10734]94        )
[11629]95    hnd_state_result_fee = schema.Float(
96        title = _(u'HND Statement of Result Fee'),
97        default = 0.0,
98        required = True,
99        )
[11683]100    pgd_state_result_fee = schema.Float(
101        title = _(u'PGD Statement of Result Fee'),
102        default = 0.0,
103        required = True,
104        )
[10734]105    transcript_local_fee = schema.Float(
[11629]106        title = _(u'ND Transcript (local) Fee'),
[10734]107        default = 0.0,
[11623]108        required = True,
[10734]109        )
[11629]110    hnd_transcript_local_fee = schema.Float(
111        title = _(u'HND Transcript (local) Fee'),
112        default = 0.0,
113        required = True,
114        )
[10734]115    transcript_foreign_fee = schema.Float(
[11629]116        title = _(u'ND Transcript (foreign) Fee'),
[10734]117        default = 0.0,
[11623]118        required = True,
[10734]119        )
[11629]120    hnd_transcript_foreign_fee = schema.Float(
121        title = _(u'HND Transcript (foreign) Fee'),
122        default = 0.0,
123        required = True,
124        )
[10734]125    ver_result_fee = schema.Float(
[10844]126        title = _(u'Verification of Result Fee'),
[10734]127        default = 0.0,
[11623]128        required = True,
[10734]129        )
130    change_course_fee = schema.Float(
131        title = _(u'Change of Course Fee'),
132        default = 0.0,
[11623]133        required = True,
[10734]134        )
135    change_inst_fee = schema.Float(
136        title = _(u'Change of Institute Fee'),
137        default = 0.0,
[11623]138        required = True,
[10734]139        )
140    jamb_reject_fee = schema.Float(
141        title = _(u'JAMB Rejection Form Fee'),
142        default = 0.0,
[11623]143        required = True,
[10734]144        )
145    cert_of_cert_fee = schema.Float(
146        title = _(u'Certification of Certificate Fee'),
147        default = 0.0,
[11623]148        required = True,
[10734]149        )
150    ref_let_fee = schema.Float(
151        title = _(u'Recommendation/Reference Letter Fee'),
152        default = 0.0,
[11623]153        required = True,
[10734]154        )
155    proc_cert_fee = schema.Float(
156        title = _(u'Processing of Certificate by Proxy Fee'),
157        default = 0.0,
[11623]158        required = True,
[10734]159        )
160    loss_idcard_fee = schema.Float(
[11629]161        title = _(u'Loss of ID Card Fee (student)'),
[10734]162        default = 0.0,
[11623]163        required = True,
[10734]164        )
[11629]165    staff_loss_idcard_fee = schema.Float(
166        title = _(u'Loss of ID Card Fee (staff)'),
167        default = 0.0,
168        required = True,
169        )
[10734]170    loss_examcard_fee = schema.Float(
171        title = _(u'Loss of Exam Card Fee'),
172        default = 0.0,
[11623]173        required = True,
[10734]174        )
175    loss_result_fee = schema.Float(
176        title = _(u'Loss of Result Fee'),
177        default = 0.0,
[11623]178        required = True,
[10734]179        )
180    loss_receipt_fee = schema.Float(
181        title = _(u'Loss of Receipt Fee'),
182        default = 0.0,
[11623]183        required = True,
[10734]184        )
185    loss_clearance_fee = schema.Float(
186        title = _(u'Loss of Clearance Fee'),
187        default = 0.0,
[11623]188        required = True,
[10734]189        )
190    conv_brochure_fee = schema.Float(
[11629]191        title = _(u'ND Convocation Brochure Fee'),
[10734]192        default = 0.0,
[11623]193        required = True,
[10734]194        )
[11629]195    hnd_conv_brochure_fee = schema.Float(
196        title = _(u'HND Convocation Brochure Fee'),
197        default = 0.0,
198        required = True,
199        )
[11683]200    pgd_conv_brochure_fee = schema.Float(
201        title = _(u'PGD Convocation Brochure Fee'),
202        default = 0.0,
203        required = True,
204        )
[11065]205    penalty_ug = schema.Float(
206        title = _(u'UG Penalty Fee'),
207        default = 0.0,
[11623]208        required = True,
[11065]209        )
210    penalty_pg = schema.Float(
211        title = _(u'PG Penalty Fee'),
212        default = 0.0,
[11623]213        required = True,
[11065]214        )
215
[6923]216    def getSessionString():
217        """Returns the session string from the vocabulary.
218        """
219
220
[8253]221class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
[6923]222    """A session configuration object in add mode.
223    """
224
225    academic_session = schema.Choice(
[7695]226        title = _(u'Academic Session'),
[6923]227        source = academic_sessions_vocab,
228        default = None,
229        required = True,
230        readonly = False,
231        )
232
[8204]233ICustomSessionConfigurationAdd[
234    'academic_session'].order =  ICustomSessionConfiguration[
[6923]235    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.