Ignore:
Timestamp:
8 May 2021, 16:11:45 (4 years ago)
Author:
Henrik Bettermann
Message:

Use p_session not current_session.

File:
1 edited

Legend:

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

    r16477 r16478  
    131131        # Determine fee.
    132132        if category.startswith('schoolfee'):
    133             penalty = getattr(academic_session, 'lsfp_penalty_fee')
    134             if student.current_session < 2020 and \
    135                 penalty and not self._lsfp_penalty_paymentMade(
    136                 student, student.current_session):
    137                 return _('You have to pay late school fee payment penalty first.'), None
    138133            try:
    139134                certificate = student['studycourse'].certificate
     
    148143                    return _(u'Session configuration object '
    149144                              'is not available.'), None
     145            penalty = getattr(academic_session, 'lsfp_penalty_fee')
     146            if p_session < 2020 and penalty and \
     147                not self._lsfp_penalty_paymentMade(
     148                student, student.current_session):
     149                return _('You have to pay late school fee payment penalty first.'), None
    150150            if p_level in PAYMENT_LEVELS:
    151151                amount = SCHOOL_FEES.get_fee(
Note: See TracChangeset for help on using the changeset viewer.