Ignore:
Timestamp:
30 Nov 2017, 12:57:05 (7 years ago)
Author:
Henrik Bettermann
Message:

Many customizations are needed to distinguish Diploma and Non-Diploma students in reports.

File:
1 edited

Legend:

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

    r14675 r14918  
    186186        certificate = getattr(self.__parent__,'certificate',None)
    187187        end_level = getattr(certificate, 'end_level', None)
     188        study_mode = getattr(certificate, 'study_mode', None)
     189        is_dp = False
     190        if study_mode and study_mode.startswith('dp'):
     191            is_dp = True
    188192        failed_limit = 1.5
    189193        if self.student.entry_session < 2013:
     
    213217                return 'Fail'
    214218            if self.cumulative_params[0] < 1.5:
     219                if is_dp:
     220                    return 'Fail'
    215221                return 'Pass'
    216222            if self.cumulative_params[0] < 2.4:
     223                if is_dp:
     224                    return 'Pass'
    217225                return '3s_rd_s'
    218226            if self.cumulative_params[0] < 3.5:
     227                if is_dp:
     228                    return 'Merit'
    219229                return '2s_2_s'
    220230            if self.cumulative_params[0] < 4.5:
     231                if is_dp:
     232                    return 'Credit'
    221233                return '2s_1_s'
    222234            if self.cumulative_params[0] < 5.1:
     235                if is_dp:
     236                    return 'Distinction'
    223237                return '1s_st_s'
    224238            return 'N/A'
Note: See TracChangeset for help on using the changeset viewer.