Changeset 16091 for main


Ignore:
Timestamp:
18 May 2020, 11:56:47 (4 years ago)
Author:
Henrik Bettermann
Message:

Add further states for fresh student tuition fee payments.

File:
1 edited

Legend:

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

    r15937 r16091  
    2020from zope.component import createObject, getUtility
    2121from waeup.kofa.interfaces import (IKofaUtils,
    22     ADMITTED, CLEARANCE, CLEARED, RETURNING, PAID, REGISTERED, VALIDATED)
     22    ADMITTED, CLEARANCE, REQUESTED, CLEARED, RETURNING, PAID,
     23    REGISTERED, VALIDATED)
    2324from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
    2425from kofacustom.iuokada.interfaces import MessageFactory as _
     
    107108                        amount = 0.6 * getattr(certificate, 'school_fee_2', 0.0)
    108109                else:
    109                     if student.state == CLEARED:
     110                    if student.state in (CLEARANCE, REQUESTED, CLEARED):
    110111                        amount = getattr(certificate, 'school_fee_1', 0.0)
    111112                    elif student.state == RETURNING:
Note: See TracChangeset for help on using the changeset viewer.