Ignore:
Timestamp:
27 Jan 2022, 06:41:53 (3 years ago)
Author:
Henrik Bettermann
Message:

When adding a course ticket, use course category of first certificate course found in certificate.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/students/studylevel.py

    r16755 r16757  
    348348        # not exist, students and managers will be prevented from registering
    349349        # the corresponding course.
     350        # If a certificate course is found, the course_category will be used
     351        # for the course ticket.
    350352        cert = self.__parent__.certificate
    351353        ticket_allowed = False
     
    353355            if val.course == course:
    354356                ticket_allowed = True
     357                course_category = val.course_category
    355358                break
    356359        if not ticket_allowed:
     
    363366        ticket.dcode = course.__parent__.__parent__.code
    364367        ticket.credits = course.credits
     368        ticket.course_category = course_category
    365369        if self.student.entry_session < 2013:
    366370            ticket.passmark = course.passmark - 5
     
    383387                ticket.mandatory = val.mandatory
    384388                ticket.carry_over = False
    385                 ticket.course_category = val.course_category
     389                #ticket.course_category = val.course_category
    386390                try:
    387391                    self.addCourseTicket(ticket, val.course)
Note: See TracChangeset for help on using the changeset viewer.