Ignore:
Timestamp:
16 Oct 2024, 12:21:57 (3 weeks ago)
Author:
Henrik Bettermann
Message:

Show different message when students are in state admitted.

File:
1 edited

Legend:

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

    r17727 r17943  
    2020from zope.component import createObject, getUtility
    2121from waeup.kofa.interfaces import (IKofaUtils,
    22     CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
     22    ADMITTED, CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
    2323from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
    2424from kofacustom.edopoly.interfaces import MessageFactory as _
     
    196196                            u'Session configuration object is not available.'
    197197                            ), None
     198                elif student.state == ADMITTED:
     199                        return _(
     200                        u'Please proceed for clearance before paying school fees.'
     201                        ), None
    198202            rpm, rpt = self._requiredPaymentsMade(student, p_session)
    199203            if not rpm:
Note: See TracChangeset for help on using the changeset viewer.