source: main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/interfaces.py @ 17958

Last change on this file since 17958 was 17927, checked in by Henrik Bettermann, 2 months ago

Implement WebCheckout?.

  • Property svn:keywords set to Id
File size: 5.9 KB
RevLine 
[13355]1## $Id: interfaces.py 17927 2024-09-13 10:45:39Z henrik $
2##
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##
18
19import zope.i18nmessageid
20from zope import schema
21from zc.sourcefactory.basic import BasicSourceFactory
22from waeup.kofa.interfaces import (SimpleKofaVocabulary,
23    ISessionConfiguration, academic_sessions_vocab)
24
[15000]25_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.edopoly')
[13355]26
27class ICustomSessionConfiguration(ISessionConfiguration):
28    """A session configuration object.
29    """
30
31    # Base fees, do not remove.
32
[14457]33    clearance_fee = schema.Float(
34        title = _(u'Acceptance Fee'),
[13355]35        default = 0.0,
36        required = False,
37        )
38
[14457]39    booking_fee = schema.Float(
40        title = _(u'Bed Booking Fee'),
[13355]41        default = 0.0,
42        required = False,
43        )
44
[14457]45    maint_fee = schema.Float(
46        title = _(u'Rent (fallback)'),
[13355]47        default = 0.0,
48        required = False,
49        )
50
[15013]51    late_registration_fee = schema.Float(
52        title = _(u'Late Course Reg. Fee'),
53        default = 0.0,
54        required = False,
55        )
56
57    transcript_fee = schema.Float(
58        title = _(u'Transcript Fee'),
59        default = 0.0,
60        required = False,
61        )
62
63    transfer_fee = schema.Float(
64        title = _(u'Transfer Fee'),
65        default = 0.0,
66        required = False,
67        )
68
[17927]69    interswitch_enabled = schema.Bool(
70        title = _(u'Interswitch Collegepay integration enabled'),
71        default = True,
72        )
73
74    interswitch_webcheckout_enabled = schema.Bool(
75        title = _(u'Interswitch WebCheckout integration enabled'),
76        default = False,
77        )
78
[15011]79    # Additional fees in custom package add here
[13355]80
[15123]81    admchecking_fee = schema.Float(
82        title = _(u'Admission Checking Fee'),
83        default = 0.0,
84        required = False,
85        )
86
[15018]87    logbook_combo_fee = schema.Float(
[15013]88        title = _(u'Logbook Combo Fee'),
[13355]89        default = 0.0,
90        required = False,
91        )
92
[17097]93    ict_entre_fee = schema.Float(
94        title = _(u'ICT & Entrepreneur Fee'),
95        default = 0.0,
96        required = False,
97        )
[14457]98
[15013]99    siwess_combo_fee = schema.Float(
100        title = _(u'SIWESS Combo Fee'),
101        default = 0.0,
102        required = False,
103        )
104
[15015]105    certificate_fee = schema.Float(
106        title = _(u'Certificate Fee'),
107        default = 0.0,
108        required = False,
109        )
110
[15071]111    certificate_confirm_fee = schema.Float(
112        title = _(u'Certificate Confirmation Fee'),
113        default = 0.0,
114        required = False,
115        )
116
117    final_clearance_fee = schema.Float(
118        title = _(u'Final Clearance Fee'),
119        default = 0.0,
120        required = False,
121        )
122
[15105]123    union_fee = schema.Float(
124        title = _(u'Student Union Dues'),
125        default = 0.0,
126        required = False,
127        )
128
[15183]129    medical_fee = schema.Float(
[16324]130        title = _(u'Medical Laboratory Test Fee'),
[15183]131        default = 0.0,
132        required = False,
133        )
134
[15218]135    conv_nd_fee = schema.Float(
136        title = _(u'Convocation Fee ND'),
137        default = 0.0,
138        required = False,
139        )
140
141    conv_hnd_fee = schema.Float(
[17103]142        title = _(u'Convocation Fee HND'),
[15218]143        default = 0.0,
144        required = False,
145        )
146
[15525]147    nhis_fee = schema.Float(
[16325]148        title = _(u'TISHIP Fee'),
[15525]149        default = 0.0,
150        required = False,
151        )
152
[15655]153    coc_fee = schema.Float(
154        title = _(u'Change of Course Fee'),
155        default = 0.0,
156        required = False,
157        )
158
159    damages_fee = schema.Float(
160        title = _(u'Damages Fee'),
161        default = 0.0,
162        required = False,
163        )
164
165    project_bind_fee = schema.Float(
166        title = _(u'Project Binding Fee'),
167        default = 0.0,
168        required = False,
169        )
170
[16342]171    maintenance_fee = schema.Float(
172        title = _(u'Maintenance and Utility Fees'),
173        default = 0.0,
174        required = False,
175        )
176
[16820]177    cyber_fee = schema.Float(
178        title = _(u'Cyber Security Fee'),
179        default = 0.0,
180        required = False,
181        )
182
183    ispon_fee = schema.Float(
184        title = _(u'ISPON Safety Fee'),
185        default = 0.0,
186        required = False,
187        )
188
[17104]189    indigene_fee = schema.Float(
190        title = _(u'Non-State Indigene Fee'),
191        default = 0.0,
192        required = False,
193        )
194    develop_fee = schema.Float(
195        title = _(u'Development Fee'),
196        default = 0.0,
197        required = False,
198        )       
199
200    sport_fee = schema.Float(
201        title = _(u'Sport Development Fee'),
202        default = 0.0,
203        required = False,
204        )
205       
[17635]206    gown_fee = schema.Float(
207        title = _(u'Matriculation Gown Fee'),
208        default = 0.0,
209        required = False,
210        )
211
212    global_practics_fee = schema.Float(
213        title = _(u'Global Practics Fee'),
214        default = 0.0,
215        required = False,
216        )
217
[13355]218    def getSessionString():
219        """Returns the session string from the vocabulary.
220        """
221
222
223class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
224    """A session configuration object in add mode.
225    """
226
227    academic_session = schema.Choice(
228        title = _(u'Academic Session'),
229        source = academic_sessions_vocab,
230        default = None,
231        required = True,
232        readonly = False,
233        )
234
235ICustomSessionConfigurationAdd[
236    'academic_session'].order =  ICustomSessionConfiguration[
[10765]237    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.