Ignore:
Timestamp:
18 May 2022, 07:18:24 (3 years ago)
Author:
Henrik Bettermann
Message:

Copy applicant_id into reg_number field during student record creation if applicant's reg_number is not set.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py

    r16598 r16955  
    188188            certificate = getattr(self, 'course_admitted', None)
    189189            mapping = self.applicant_student_mapping
     190        # Set (fallback) reg_number
     191        if self.reg_number is None:
     192            self.reg_number = self.applicant_id
    190193        # Does registration number exist?
    191194        student = createObject(u'waeup.Student')
Note: See TracChangeset for help on using the changeset viewer.