Ignore:
Timestamp:
20 Jun 2024, 08:37:06 (5 months ago)
Author:
Henrik Bettermann
Message:

Matrac number format for CDL.

File:
1 edited

Legend:

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

    r17664 r17818  
    443443            return _('Matriculation number cannot be set.'), None
    444444        year = unicode(student.entry_session)[2:]
     445        if grok.getSite().__name__ == 'iuokada-cdl':
     446            return None, "%s/%04d/%s/CDL" % (year, next_integer, student.faccode)
    445447        return None, "%s/%06d/%s" % (year, next_integer, student.faccode)
Note: See TracChangeset for help on using the changeset viewer.