Changeset 14411


Ignore:
Timestamp:
17 Jan 2017, 06:13:10 (8 years ago)
Author:
Henrik Bettermann
Message:

Extend getDegreeClassNumber.

File:
1 edited

Legend:

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

    r14402 r14411  
    4343
    4444    def getDegreeClassNumber(self, level_obj):
     45        if level_obj.gpa_params[1] == 0:
     46            return 0
    4547        certificate = getattr(level_obj.__parent__,'certificate',None)
    4648        end_level = getattr(certificate, 'end_level', None)
    4749        if end_level and level_obj.student.current_level >= end_level:
    4850            failed_courses = level_obj.passed_params[4]
     51            not_taken_courses = level_obj.passed_params[5]
    4952            if '_m' in failed_courses:
     53                return 0
     54            if len(not_taken_courses):
     55                return 0
     56            if level_obj.level_verdict == 'FRNS':
    5057                return 0
    5158        # use gpa_boundaries above
     
    219226                and category != 'clearance_incl':
    220227                    return _("Additional fees must be included."), None
    221             if student.faccode == 'FP':
     228            if student.faccode == 'FP':  # includes IJMBE
    222229                amount = academic_session.clearance_fee_fp
    223230            elif student.current_mode.endswith('_pt'):
Note: See TracChangeset for help on using the changeset viewer.