Changeset 16870 for main


Ignore:
Timestamp:
8 Mar 2022, 21:36:15 (3 years ago)
Author:
Henrik Bettermann
Message:

Customize set of payment categories.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r16717 r16870  
    1818"""Customize general helper utilities for Kofa.
    1919"""
     20from copy import deepcopy
    2021from kofacustom.nigeria.utils.utils import NigeriaKofaUtils
    2122
     
    2425    """
    2526
     27    PAYMENT_CATEGORIES = {
     28        'schoolfee': 'School Fee',
     29        'clearance': 'Acceptance Fee',
     30        'bed_allocation': 'Bed Allocation Fee',
     31        #'hostel_maintenance': 'Hostel Maintenance Fee',
     32        #'transfer': 'Transfer Fee',
     33        #'gown': 'Gown Hire Fee',
     34        'application': 'Application Fee',
     35        #'app_balance': 'Application Fee Balance',
     36        #'transcript': 'Transcript Fee',
     37        #'late_registration': 'Late Course Registration Fee',
     38        #'combi': 'Combi Payment',
     39        }
     40
     41    SELECTABLE_PAYMENT_CATEGORIES = {
     42        'schoolfee': 'School Fee',
     43        'clearance': 'Acceptance Fee',
     44        'bed_allocation': 'Bed Allocation Fee',
     45        }
     46
     47    def selectable_payment_categories(self, student):
     48        return self.SELECTABLE_PAYMENT_CATEGORIES
     49
     50    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
     51
Note: See TracChangeset for help on using the changeset viewer.