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

Add disable payment item.

File:
1 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
Note: See TracChangeset for help on using the changeset viewer.