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

Last change on this file since 18034 was 18034, checked in by Henrik Bettermann, 5 hours ago

Implement required combi split payments.

  • Property svn:keywords set to Id
File size: 9.5 KB
Line 
1## $Id: interfaces.py 18034 2025-03-10 16:40:53Z 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    grad_clearance_fee = schema.Float(
103        title = _(u'Clearance Fee'),
104        default = 0.0,
105        required = False,
106        )
107
108    #registration_fee = schema.Float(
109    #    title = _(u'Registration Fee'),
110    #    default = 0.0,
111    #    required = False,
112    #    )
113
114    late_registration_fee = schema.Float(
115        title = _(u'Late Registration Fee'),
116        default = 0.0,
117        required = False,
118        )
119
120    science_fee = schema.Float(
121        title = _(u'Science Bench Fee'),
122        default = 0.0,
123        required = False,
124        )
125
126    clinical_fee = schema.Float(
127        title = _(u'Clinical Fee (Medical Students)'),
128        default = 0.0,
129        required = False,
130        )
131
132    alumni_fee = schema.Float(
133        title = _(u'Alumni Fee'),
134        default = 0.0,
135        required = False,
136        )
137
138    conv_fee = schema.Float(
139        title = _(u'Convocation Fee'),
140        default = 0.0,
141        required = False,
142        )
143
144    pharmlab_fee = schema.Float(
145        title = _(u'Pharmacy Lab Support Fee'),
146        default = 0.0,
147        required = False,
148        )
149
150    lo_ident_fee = schema.Float(
151        title = _(u'Letter of Identification Fee'),
152        default = 0.0,
153        required = False,
154        )
155
156    change_course_fee = schema.Float(
157        title = _(u'Change of Course Fee'),
158        default = 0.0,
159        required = False,
160        )
161
162    #make_up_fee = schema.Float(
163    #    title = _(u'Make-up Fee'),
164    #    default = 0.0,
165    #    required = False,
166    #    )
167
168    iuits_fee = schema.Float(
169        title = _(u'IUITS Fee'),
170        default = 0.0,
171        required = False,
172        )
173
174    fine_fee = schema.Float(
175        title = _(u'Fine'),
176        default = 0.0,
177        required = False,
178        )
179
180    resit_fee = schema.Float(
181        title = _(u'Make-Up Examination Course Fee'),
182        default = 0.0,
183        required = False,
184        )
185
186    makeup_admin_fee = schema.Float(
187        title = _(u'Make-Up Registration Fee'),
188        default = 0.0,
189        required = False,
190        )
191
192    pg_other_fee = schema.Float(
193        title = _(u'PG Other Charges'),
194        default = 0.0,
195        required = True,
196        )
197
198    application_fee = schema.Float(
199        title = _(u'Application Fee'),
200        default = 0.0,
201        required = False,
202        )
203    jupeb_form_fee = schema.Float(
204        title = _(u'JUPEB Form Fee'),
205        default = 0.0,
206        required = False,
207        )
208
209    jupeb_acc_fee = schema.Float(
210        title = _(u'JUPEB Acceptance Fee'),
211        default = 0.0,
212        required = False,
213        )
214
215    jupeb_sci_fee = schema.Float(
216        title = _(u'JUPEB Science Fee'),
217        default = 0.0,
218        required = False,
219        )
220
221    jupeb_arts_fee = schema.Float(
222        title = _(u'JUPEB Arts Fee'),
223        default = 0.0,
224        required = False,
225        )
226
227    jupeb_hostel_fee = schema.Float(
228        title = _(u'JUPEB Hostel Fee'),
229        default = 0.0,
230        required = False,
231        )
232
233    jupeb_reg_fee = schema.Float(
234        title = _(u'JUPEB Administrative Fee'),
235        default = 0.0,
236        required = False,
237        )
238
239    pg_application_fee = schema.Float(
240        title = _(u'PG Application Fee'),
241        default = 0.0,
242        required = False,
243        )
244
245    # Sundry Fees
246
247    medical_screening_fee = schema.Float(
248        title = _(u'Medical Screening Fees'),
249        default = 0.0,
250        required = False,
251        )
252
253    book_fee = schema.Float(
254        title = _(u'Book Deposit'),
255        default = 0.0,
256        required = False,
257        )
258
259    parentsconsult_fee = schema.Float(
260        title = _(u'Parents Consultative Forum (PCF) Fee'),
261        default = 0.0,
262        required = False,
263        )
264
265    health_insurance_fee = schema.Float(
266        title = _(u'Student Health Insurance Fee'),
267        default = 0.0,
268        required = False,
269        )
270
271    develop_fee = schema.Float(
272        title = _(u'Development Fee'),
273        default = 0.0,
274        required = False,
275        )
276
277    registration_fresh_fee = schema.Float(
278        title = _(u'Registration Fee (Fresh)'),
279        default = 0.0,
280        required = False,
281        )
282
283    registration_return_fee = schema.Float(
284        title = _(u'Registration Fee (Returning)'),
285        default = 0.0,
286        required = False,
287        )
288
289    municipal_fresh_fee = schema.Float(
290        title = _(u'Municipal Fee Fresh Students'),
291        default = 0.0,
292        required = False,
293        )
294
295    municipal_returning_fee = schema.Float(
296        title = _(u'Municipal Fee Returning Students'),
297        default = 0.0,
298        required = False,
299        )
300
301    matric_fee = schema.Float(
302        title = _(u'Matriculation Fee'),
303        default = 0.0,
304        required = False,
305        )
306
307    waecneco_fee = schema.Float(
308        title = _(u'WAEC & NECO Verification Fee'),
309        default = 0.0,
310        required = False,
311        )
312
313    jambver_fee = schema.Float(
314        title = _(u'JAMB Verification Fee'),
315        default = 0.0,
316        required = False,
317        )
318
319    id_card_fee = schema.Float(
320        title = _(u'Student ID Card Fee'),
321        default = 0.0,
322        required = True,
323        )
324
325    _fee = schema.Float(
326        title = u'',
327        default = 0.0,
328        required = False,
329        )
330
331
332    # CDL Portal Fees only
333
334    medical_fee = schema.Float(
335        title = _(u'Medical Services Fee (CDL only)'),
336        default = 0.0,
337        required = False,
338        )
339
340
341    library_fee = schema.Float(
342        title = _(u'Library Fee (CDL only)'),
343        default = 0.0,
344        required = False,
345        )
346
347    ict_fee = schema.Float(
348        title = _(u'ICT Fee (CDL only)'),
349        default = 0.0,
350        required = False,
351        )
352
353    orientation_fee = schema.Float(
354        title = _(u'Orientation Fee (CDL only'),
355        default = 0.0,
356        required = False,
357        )
358
359    examination_fee = schema.Float(
360        title = _(u'Examination Fee (CDL only)'),
361        default = 0.0,
362        required = False,
363        )
364
365    course_fee = schema.Float(
366        title = _(u'Course Fee (CDL only)'),
367        default = 0.0,
368        required = False,
369        )
370
371    def getSessionString():
372        """Returns the session string from the vocabulary.
373        """
374
375
376class ICustomSessionConfigurationAdd(ICustomSessionConfiguration):
377    """A session configuration object in add mode.
378    """
379
380    academic_session = schema.Choice(
381        title = _(u'Academic Session'),
382        source = academic_sessions_vocab,
383        default = None,
384        required = True,
385        readonly = False,
386        )
387
388ICustomSessionConfigurationAdd[
389    'academic_session'].order =  ICustomSessionConfiguration[
390    'academic_session'].order
Note: See TracBrowser for help on using the repository browser.