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

Customize _isPaymentDisabled.

Location:
main/kofacustom.dspg/trunk/src/kofacustom/dspg
Files:
2 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,
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/utils/utils.py

    r16563 r16948  
    2323    """A collection of methods subject to customization.
    2424    """
     25
     26    DISABLE_PAYMENT_GROUP_DICT = {
     27        'sf_all': 'School Fee - All Students',
     28        'sf_spat': 'School Fee - SPAT Students',
     29        }
    2530
    2631    APP_CATS_DICT = {
Note: See TracChangeset for help on using the changeset viewer.