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

Show different message when students are in state admitted.

Location:
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students
Files:
2 edited

Legend:

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

    r17727 r17943  
    123123        IWorkflowState(self.student).setState('admitted')
    124124        error, payment = utils.setPaymentDetails('schoolfee',self.student)
    125         self.assertEqual(error, u'Amount could not be determined.')
     125        self.assertEqual(error, u'Please proceed for clearance before paying school fees.')
  • 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.