Ignore:
Timestamp:
18 Jun 2012, 17:00:00 (12 years ago)
Author:
Henrik Bettermann
Message:

Implement school fee payment by two instalments. Instalment 1 replaces the original school fee payment, instalment 2 is an additional payment which can only be made if instalment 1 has been paid. Furthermore, instalment 1 can only be made if instalment 2 of the previous session has been paid (returning students only).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/payments/interfaces.py

    r8682 r8753  
    1919from zope import schema
    2020from waeup.kofa.payments.interfaces import IPayment
     21from waeup.kofa.interfaces import SimpleKofaVocabulary
    2122from waeup.kofa.interfaces import MessageFactory as _
     23
     24payment_categories = SimpleKofaVocabulary(
     25    (_('School Fee 1st instalment'),'schoolfee_1'),
     26    (_('School Fee 2nd instalment'),'schoolfee_2'),
     27    (_('Clearance'),'clearance'),
     28    (_('Bed Allocation'),'bed_allocation'),
     29    (_('Hostel Maintenance'),'hostel_maintenance'),
     30    (_('Transfer'),'transfer'),
     31    (_('Gown'),'gown'),
     32    (_('Application Fee'), 'application'),
     33    )
    2234
    2335class ICustomOnlinePayment(IPayment):
     
    2537
    2638    """
     39
     40    p_category = schema.Choice(
     41        title = _(u'Payment Category'),
     42        default = u'schoolfee_1',
     43        vocabulary = payment_categories,
     44        required = True,
     45        )
    2746
    2847    ac = schema.TextLine(
     
    7695        readonly = False,
    7796        )
     97
     98ICustomOnlinePayment['p_category'].order = ICustomOnlinePayment[
     99    'p_category'].order
Note: See TracChangeset for help on using the changeset viewer.