Changeset 17749


Ignore:
Timestamp:
27 Apr 2024, 06:07:06 (8 months ago)
Author:
Henrik Bettermann
Message:

The logic was wrong.

File:
1 edited

Legend:

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

    r17746 r17749  
    4545            return _('Maximum credits exceeded.')
    4646        if not course:
    47             if studylevel.level == 300:
    48                 if studylevel.total_credits < 27:
     47            if studylevel.level != 300 and studylevel.total_credits < 30:
    4948                    return _('Minimum credits not reached.')
    50             if studylevel.total_credits < 30:
     49            if studylevel.level == 300 and studylevel.total_credits < 27:
    5150                return _('Minimum credits not reached.')
    5251        return
Note: See TracChangeset for help on using the changeset viewer.