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

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

More special payment fee categories added.

  • Property svn:keywords set to Id
File size: 6.3 KB
RevLine 
[7419]1## $Id: interfaces.py 11629 2014-05-09 16:18:04Z 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        )
65
[9317]66    gown_fee = schema.Float(
[7695]67        title = _(u'Gown Fee'),
[7928]68        default = 0.0,
[11623]69        required = True,
[7021]70        )
71
[9317]72    transfer_fee = schema.Float(
[7695]73        title = _(u'Transfer Fee'),
[7928]74        default = 0.0,
[11623]75        required = True,
[7021]76        )
77
[10734]78    certificate_fee = schema.Float(
79        title = _(u' Certificate Fee'),
80        default = 0.0,
[11623]81        required = True,
[10734]82        )
83    state_result_fee = schema.Float(
[11629]84        title = _(u'ND Statement of Result Fee'),
[10734]85        default = 0.0,
[11623]86        required = True,
[10734]87        )
[11629]88    hnd_state_result_fee = schema.Float(
89        title = _(u'HND Statement of Result Fee'),
90        default = 0.0,
91        required = True,
92        )
[10734]93    transcript_local_fee = schema.Float(
[11629]94        title = _(u'ND Transcript (local) Fee'),
[10734]95        default = 0.0,
[11623]96        required = True,
[10734]97        )
[11629]98    hnd_transcript_local_fee = schema.Float(
99        title = _(u'HND Transcript (local) Fee'),
100        default = 0.0,
101        required = True,
102        )
[10734]103    transcript_foreign_fee = schema.Float(
[11629]104        title = _(u'ND Transcript (foreign) Fee'),
[10734]105        default = 0.0,
[11623]106        required = True,
[10734]107        )
[11629]108    hnd_transcript_foreign_fee = schema.Float(
109        title = _(u'HND Transcript (foreign) Fee'),
110        default = 0.0,
111        required = True,
112        )
[10734]113    ver_result_fee = schema.Float(
[10844]114        title = _(u'Verification of Result Fee'),
[10734]115        default = 0.0,
[11623]116        required = True,
[10734]117        )
118    change_course_fee = schema.Float(
119        title = _(u'Change of Course Fee'),
120        default = 0.0,
[11623]121        required = True,
[10734]122        )
123    change_inst_fee = schema.Float(
124        title = _(u'Change of Institute Fee'),
125        default = 0.0,
[11623]126        required = True,
[10734]127        )
128    jamb_reject_fee = schema.Float(
129        title = _(u'JAMB Rejection Form Fee'),
130        default = 0.0,
[11623]131        required = True,
[10734]132        )
133    cert_of_cert_fee = schema.Float(
134        title = _(u'Certification of Certificate Fee'),
135        default = 0.0,
[11623]136        required = True,
[10734]137        )
138    ref_let_fee = schema.Float(
139        title = _(u'Recommendation/Reference Letter Fee'),
140        default = 0.0,
[11623]141        required = True,
[10734]142        )
143    proc_cert_fee = schema.Float(
144        title = _(u'Processing of Certificate by Proxy Fee'),
145        default = 0.0,
[11623]146        required = True,
[10734]147        )
148    loss_idcard_fee = schema.Float(
[11629]149        title = _(u'Loss of ID Card Fee (student)'),
[10734]150        default = 0.0,
[11623]151        required = True,
[10734]152        )
[11629]153    staff_loss_idcard_fee = schema.Float(
154        title = _(u'Loss of ID Card Fee (staff)'),
155        default = 0.0,
156        required = True,
157        )
[10734]158    loss_examcard_fee = schema.Float(
159        title = _(u'Loss of Exam Card Fee'),
160        default = 0.0,
[11623]161        required = True,
[10734]162        )
163    loss_result_fee = schema.Float(
164        title = _(u'Loss of Result Fee'),
165        default = 0.0,
[11623]166        required = True,
[10734]167        )
168    loss_receipt_fee = schema.Float(
169        title = _(u'Loss of Receipt Fee'),
170        default = 0.0,
[11623]171        required = True,
[10734]172        )
173    loss_clearance_fee = schema.Float(
174        title = _(u'Loss of Clearance Fee'),
175        default = 0.0,
[11623]176        required = True,
[10734]177        )
178    conv_brochure_fee = schema.Float(
[11629]179        title = _(u'ND Convocation Brochure Fee'),
[10734]180        default = 0.0,
[11623]181        required = True,
[10734]182        )
[11629]183    hnd_conv_brochure_fee = schema.Float(
184        title = _(u'HND Convocation Brochure Fee'),
185        default = 0.0,
186        required = True,
187        )
[11065]188    penalty_ug = schema.Float(
189        title = _(u'UG Penalty Fee'),
190        default = 0.0,
[11623]191        required = True,
[11065]192        )
[10734]193
[11065]194    penalty_pg = schema.Float(
195        title = _(u'PG Penalty Fee'),
196        default = 0.0,
[11623]197        required = True,
[11065]198        )
199
[6923]200    def getSessionString():
201        """Returns the session string from the vocabulary.
202        """
203
204
[8253]205class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
[6923]206    """A session configuration object in add mode.
207    """
208
209    academic_session = schema.Choice(
[7695]210        title = _(u'Academic Session'),
[6923]211        source = academic_sessions_vocab,
212        default = None,
213        required = True,
214        readonly = False,
215        )
216
[8204]217ICustomSessionConfigurationAdd[
218    'academic_session'].order =  ICustomSessionConfiguration[
[6923]219    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.