Ignore:
Timestamp:
15 Mar 2018, 15:32:40 (7 years ago)
Author:
Henrik Bettermann
Message:

Allow to disable degree programme school fee payments.

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

Legend:

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

    r14943 r14968  
    6262
    6363    """
     64
     65    def _isPaymentDisabled(self, p_session, category, student):
     66        academic_session = self._getSessionConfiguration(p_session)
     67        if category == 'schoolfee':
     68            if 'sf_all' in academic_session.payment_disabled:
     69                return True
     70            if student.current_mode == 'ug_ft' and \
     71                'degree' in academic_session.payment_disabled:
     72                return True
     73        return False
    6474
    6575    def setPaymentDetails(self, category, student,
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/utils/utils.py

    r14894 r14968  
    6767
    6868    SELECTABLE_PAYMENT_CATEGORIES = deepcopy(PAYMENT_CATEGORIES)
     69
     70    DISABLE_PAYMENT_GROUP_DICT = {
     71        'sf_all': 'School Fee - All Students',
     72        'degree': 'Degree Programme',
     73        }
Note: See TracChangeset for help on using the changeset viewer.