source: main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/interfaces.py @ 18038

Last change on this file since 18038 was 18038, checked in by Henrik Bettermann, 8 hours ago

Remove duplicate.

  • Property svn:keywords set to Id
File size: 9.4 KB
Line 
1## $Id: interfaces.py 18038 2025-03-12 14:37:51Z 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
25_ = MessageFactory = zope.i18nmessageid.MessageFactory('kofacustom.iuokada')
26
27class ICustomSessionConfiguration(ISessionConfiguration):
28    """A session configuration object.
29    """
30
31    # Base fees, do not remove.
32
33    clearance_fee = schema.Float(
34        title = _(u'Acceptance Fee'),
35        default = 0.0,
36        required = False,
37        )
38
39    booking_fee = schema.Float(
40        title = _(u'Bed Booking Fee'),
41        default = 0.0,
42        required = False,
43        )
44
45    maint_fee = schema.Float(
46        title = _(u'Rent (fallback)'),
47        default = 0.0,
48        required = False,
49        )
50
51    #late_registration_fee = schema.Float(
52    #    title = _(u'Late Course Reg. Fee'),
53    #    default = 0.0,
54    #    required = False,
55    #    )
56
57    transcript_local_fee = schema.Float(
58        title = _(u'Transcript Fee Local Students'),
59        default = 0.0,
60        required = False,
61        )
62
63    transcript_overseas_fee = schema.Float(
64        title = _(u'Transcript Fee Oversea Students'),
65        default = 0.0,
66        required = False,
67        )
68
69    transfer_fee = schema.Float(
70        title = _(u'Transfer Fee'),
71        default = 0.0,
72        required = False,
73        )
74
75    interswitch_enabled = schema.Bool(
76        title = _(u'Interswitch Collegepay integration enabled'),
77        default = True,
78        )
79
80    interswitch_paydirect_enabled = schema.Bool(
81        title = _(u'Interswitch Paydirect integration enabled'),
82        default = True,
83        )
84
85    etranzact_webconnect_enabled = schema.Bool(
86        title = _(u'Etranzact Webconnect integration enabled'),
87        default = False,
88        )
89
90    etranzact_payoutlet_enabled = schema.Bool(
91        title = _(u'Etranzact Payoutlet integration enabled'),
92        default = False,
93        )
94
95    etranzact_credo_enabled = schema.Bool(
96        title = _(u'Etranzact Credo integration enabled'),
97        default = False,
98        )
99
100    # Additional fees in custom package add here
101
102
103    #registration_fee = schema.Float(
104    #    title = _(u'Registration Fee'),
105    #    default = 0.0,
106    #    required = False,
107    #    )
108
109    late_registration_fee = schema.Float(
110        title = _(u'Late Registration Fee'),
111        default = 0.0,
112        required = False,
113        )
114
115    science_fee = schema.Float(
116        title = _(u'Science Bench Fee'),
117        default = 0.0,
118        required = False,
119        )
120
121    clinical_fee = schema.Float(
122        title = _(u'Clinical Fee (Medical Students)'),
123        default = 0.0,
124        required = False,
125        )
126
127    alumni_fee = schema.Float(
128        title = _(u'Alumni Fee'),
129        default = 0.0,
130        required = False,
131        )
132
133    conv_fee = schema.Float(
134        title = _(u'Convocation Fee'),
135        default = 0.0,
136        required = False,
137        )
138
139    pharmlab_fee = schema.Float(
140        title = _(u'Pharmacy Lab Support Fee'),
141        default = 0.0,
142        required = False,
143        )
144
145    lo_ident_fee = schema.Float(
146        title = _(u'Letter of Identification Fee'),
147        default = 0.0,
148        required = False,
149        )
150
151    change_course_fee = schema.Float(
152        title = _(u'Change of Course Fee'),
153        default = 0.0,
154        required = False,
155        )
156
157    #make_up_fee = schema.Float(
158    #    title = _(u'Make-up Fee'),
159    #    default = 0.0,
160    #    required = False,
161    #    )
162
163    iuits_fee = schema.Float(
164        title = _(u'IUITS Fee'),
165        default = 0.0,
166        required = False,
167        )
168
169    fine_fee = schema.Float(
170        title = _(u'Fine'),
171        default = 0.0,
172        required = False,
173        )
174
175    resit_fee = schema.Float(
176        title = _(u'Make-Up Examination Course Fee'),
177        default = 0.0,
178        required = False,
179        )
180
181    makeup_admin_fee = schema.Float(
182        title = _(u'Make-Up Registration Fee'),
183        default = 0.0,
184        required = False,
185        )
186
187    pg_other_fee = schema.Float(
188        title = _(u'PG Other Charges'),
189        default = 0.0,
190        required = False,
191        )
192
193    application_fee = schema.Float(
194        title = _(u'Application Fee'),
195        default = 0.0,
196        required = False,
197        )
198    jupeb_form_fee = schema.Float(
199        title = _(u'JUPEB Form Fee'),
200        default = 0.0,
201        required = False,
202        )
203
204    jupeb_acc_fee = schema.Float(
205        title = _(u'JUPEB Acceptance Fee'),
206        default = 0.0,
207        required = False,
208        )
209
210    jupeb_sci_fee = schema.Float(
211        title = _(u'JUPEB Science Fee'),
212        default = 0.0,
213        required = False,
214        )
215
216    jupeb_arts_fee = schema.Float(
217        title = _(u'JUPEB Arts Fee'),
218        default = 0.0,
219        required = False,
220        )
221
222    jupeb_hostel_fee = schema.Float(
223        title = _(u'JUPEB Hostel Fee'),
224        default = 0.0,
225        required = False,
226        )
227
228    jupeb_reg_fee = schema.Float(
229        title = _(u'JUPEB Administrative Fee'),
230        default = 0.0,
231        required = False,
232        )
233
234    pg_application_fee = schema.Float(
235        title = _(u'PG Application Fee'),
236        default = 0.0,
237        required = False,
238        )
239
240    # Sundry Fees
241
242    grad_clearance_fee = schema.Float(
243        title = _(u'Graduation Clearance Fee'),
244        default = 0.0,
245        required = False,
246        )
247
248    medical_screening_fee = schema.Float(
249        title = _(u'Medical Screening Fees'),
250        default = 0.0,
251        required = False,
252        )
253
254    book_fee = schema.Float(
255        title = _(u'Book Deposit'),
256        default = 0.0,
257        required = False,
258        )
259
260    parentsconsult_fee = schema.Float(
261        title = _(u'Parents Consultative Forum (PCF) Fee'),
262        default = 0.0,
263        required = False,
264        )
265
266    health_insurance_fee = schema.Float(
267        title = _(u'Student Health Insurance Fee'),
268        default = 0.0,
269        required = False,
270        )
271
272    develop_fee = schema.Float(
273        title = _(u'Development Fee'),
274        default = 0.0,
275        required = False,
276        )
277
278    registration_fresh_fee = schema.Float(
279        title = _(u'Registration Fee (Fresh)'),
280        default = 0.0,
281        required = False,
282        )
283
284    registration_return_fee = schema.Float(
285        title = _(u'Registration Fee (Returning)'),
286        default = 0.0,
287        required = False,
288        )
289
290    municipal_fresh_fee = schema.Float(
291        title = _(u'Municipal Fee Fresh Students'),
292        default = 0.0,
293        required = False,
294        )
295
296    municipal_returning_fee = schema.Float(
297        title = _(u'Municipal Fee Returning Students'),
298        default = 0.0,
299        required = False,
300        )
301
302    matric_fee = schema.Float(
303        title = _(u'Matriculation Fee'),
304        default = 0.0,
305        required = False,
306        )
307
308    waecneco_fee = schema.Float(
309        title = _(u'WAEC & NECO Verification Fee'),
310        default = 0.0,
311        required = False,
312        )
313
314    jambver_fee = schema.Float(
315        title = _(u'JAMB Verification Fee'),
316        default = 0.0,
317        required = False,
318        )
319
320    id_card_fee = schema.Float(
321        title = _(u'Student ID Card Fee'),
322        default = 0.0,
323        required = False,
324        )
325
326    # CDL Portal Fees only
327
328    medical_fee = schema.Float(
329        title = _(u'Medical Services Fee (CDL only)'),
330        default = 0.0,
331        required = False,
332        )
333
334
335    library_fee = schema.Float(
336        title = _(u'Library Fee (CDL only)'),
337        default = 0.0,
338        required = False,
339        )
340
341    ict_fee = schema.Float(
342        title = _(u'ICT Fee (CDL only)'),
343        default = 0.0,
344        required = False,
345        )
346
347    orientation_fee = schema.Float(
348        title = _(u'Orientation Fee (CDL only'),
349        default = 0.0,
350        required = False,
351        )
352
353    examination_fee = schema.Float(
354        title = _(u'Examination Fee (CDL only)'),
355        default = 0.0,
356        required = False,
357        )
358
359    course_fee = schema.Float(
360        title = _(u'Course Fee (CDL only)'),
361        default = 0.0,
362        required = False,
363        )
364
365    def getSessionString():
366        """Returns the session string from the vocabulary.
367        """
368
369
370class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
371    """A session configuration object in add mode.
372    """
373
374    academic_session = schema.Choice(
375        title = _(u'Academic Session'),
376        source = academic_sessions_vocab,
377        default = None,
378        required = True,
379        readonly = False,
380        )
381
382ICustomSessionConfigurationAdd[
383    'academic_session'].order =  ICustomSessionConfiguration[
384    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.