Changeset 17598


Ignore:
Timestamp:
29 Sep 2023, 09:55:41 (15 months ago)
Author:
Henrik Bettermann
Message:

Add disable payment item.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
2 edited

Legend:

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

    r17373 r17598  
    4444                    ticket.p_category == 'clearance':
    4545                    return True
     46        return False
     47
     48    def _isPaymentDisabled(self, p_session, category, student):
     49        academic_session = self._getSessionConfiguration(p_session)
     50        if category == 'schoolfee':
     51            if 'sf_all' in academic_session.payment_disabled:
     52                return True
     53            if student.current_mode == 'ug_ft' and \
     54                'sf_ugft' in academic_session.payment_disabled:
     55                return True
    4656        return False
    4757
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r17554 r17598  
    5353    PREVIOUS_PAYMENT_CATEGORIES = deepcopy(SELECTABLE_PAYMENT_CATEGORIES)
    5454
     55    DISABLE_PAYMENT_GROUP_DICT = {
     56        'sf_all':    'School Fee - All',
     57        'sf_ugft':   'School Fee - Undergraduate Full-Time',
     58        }
     59
    5560    COURSE_CATEGORY_DICT = {
    5661        'C':'Core Course (C)',
Note: See TracChangeset for help on using the changeset viewer.