Ignore:
Timestamp:
6 May 2015, 10:13:38 (9 years ago)
Author:
Henrik Bettermann
Message:

Implement automatic matric_number assignment. Students can induce the
assignment if they have paid school fees by clicking the
'Get Matriculation Number' button. Numbering is per department and session.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py

    r12904 r12907  
    2424from kofacustom.nigeria.students.utils import NigeriaStudentsUtils
    2525from waeup.kofa.accesscodes import create_accesscode
    26 from waeup.kofa.interfaces import CLEARED, RETURNING, ADMITTED, IKofaUtils
     26from waeup.kofa.interfaces import (
     27    CLEARED, RETURNING, ADMITTED, PAID, IKofaUtils)
    2728from waeup.kofa.fees import FeeTable
    2829from waeup.kofa.hostels.hostel import NOT_OCCUPIED
     
    356357        entry_mode = getattr(
    357358            student.get('studycourse', None), 'entry_mode', None)
     359        if student.state not in (PAID, ):
     360            return _('Wrong state.'), None
    358361        if None in (cert, entry_session, entry_mode):
    359362            return _('Matriculation number cannot be set.'), None
Note: See TracChangeset for help on using the changeset viewer.