Changeset 16776


Ignore:
Timestamp:
3 Feb 2022, 07:20:00 (3 years ago)
Author:
Henrik Bettermann
Message:

Move penalty fee if statement.

File:
1 edited

Legend:

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

    r16770 r16776  
    188188                if not self._dep_sug_gns_paymentMade(student, student.current_session):
    189189                    return _('You have to pay NADESU/SA/SUG and GNS Dues first.'), None
    190                 penalty = getattr(academic_session, 'lsfp_penalty_fee')
    191                 if  penalty and not self._lsfp_penalty_paymentMade(
    192                     student, student.current_session):
    193                     return _('You have to pay late school fee payment penalty first.'), None
    194190                if student.state == CLEARED:
    195191                    if local(student):
     
    240236                    else:
    241237                        amount = getattr(certificate, 'school_fee_4', 0.0)
     238                penalty = getattr(academic_session, 'lsfp_penalty_fee')
     239                if  penalty and not self._lsfp_penalty_paymentMade(
     240                    student, student.current_session):
     241                    return _('You have to pay late school fee payment penalty first.'), None
    242242            if amount:
    243243                amount += MICROSOFT_FEE(student)
Note: See TracChangeset for help on using the changeset viewer.