Ignore:
Timestamp:
5 May 2022, 15:29:08 (3 years ago)
Author:
Henrik Bettermann
Message:

Customize _isPaymentDisabled.

File:
1 edited

Legend:

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

    r16776 r16948  
    133133        new_session = student['studycourse'].current_session + 1
    134134        return new_session, new_level
     135
     136    def _isPaymentDisabled(self, p_session, category, student):
     137        academic_session = self._getSessionConfiguration(p_session)
     138        if category == 'schoolfee':
     139            if 'sf_all' in academic_session.payment_disabled:
     140                return True
     141            if 'sf_spat' in academic_session.payment_disabled and \
     142                student.faccode == 'SPAT':
     143                return True
     144        return False
    135145
    136146    def setPaymentDetails(self, category, student,
Note: See TracChangeset for help on using the changeset viewer.