Ignore:
Timestamp:
26 Nov 2024, 02:34:19 (7 weeks ago)
Author:
Henrik Bettermann
Message:

Let JUPEB students pay by instalments.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/utils/utils.py

    r17916 r17963  
    7474    PAYMENT_CATEGORIES = {
    7575        'schoolfee': 'School Fee',
     76        'schoolfee_1': 'School Fee (1st instalment)',
     77        'secondinstall':'School Fee (2nd instalment)',
    7678        'clearance': 'Acceptance Fee',
    7779        'bed_allocation': 'Bed Allocation Fee',
     
    126128    REPORTABLE_PAYMENT_CATEGORIES = {
    127129        'schoolfee': 'School Fee',
     130        'schoolfee_1': 'School Fee (1st instalment)',
     131        'secondinstall':'School Fee (2nd instalment)',
    128132        'clearance': 'Acceptance Fee',
    129133        'bed_allocation': 'Bed Allocation Fee',
     
    133137
    134138    def selectable_payment_categories(self, student):
    135         return self.SELECTABLE_PAYMENT_CATEGORIES
     139        spc = deepcopy(self.SELECTABLE_PAYMENT_CATEGORIES)
     140        if student.is_jupeb:
     141            spc[schoolfee_1] =  'School Fee (1st instalment)'
     142            spc[secondinstal] = 'School Fee (2nd instalment)'
     143        return spc
    136144
    137145    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
     
    147155        'sf_return': 'School Fee - Returning',
    148156        'maint_all': 'Accomm. Fee - All',
    149         'cl_all':    'Accept. Fee- All',
     157        'cl_all':    'Accept. Fee - All',
    150158        'cl_jupeb':  'Accept. Fee - JUPEB',
    151159        'cl_allexj': 'Accept. Fee - All except JUPEB',
Note: See TracChangeset for help on using the changeset viewer.