Ignore:
Timestamp:
10 Jan 2024, 07:44:52 (10 months ago)
Author:
Henrik Bettermann
Message:

Customize warnCreditsOOR.

File:
1 edited

Legend:

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

    r17647 r17662  
    3535    """
    3636
    37     # refix
    3837    STUDENT_ID_PREFIX = u'D'
     38
     39    def warnCreditsOOR(self, studylevel, course=None):
     40        """
     41        """
     42        if course and studylevel.total_credits + course.credits > 48:
     43            return _('Maximum credits exceeded.')
     44        elif studylevel.total_credits > 48:
     45            return _('Maximum credits exceeded.')
     46        elif studylevel.total_credits < 30:
     47            return _('Minimum credits not reached.')
     48        return
    3949
    4050    def _clearancePaymentMade(self, student):
Note: See TracChangeset for help on using the changeset viewer.