Changeset 17567 for main/kofacustom.edocons
- Timestamp:
- 30 Aug 2023, 11:15:08 (16 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py
r17415 r17567 173 173 payment.p_combi = combi 174 174 return None, payment 175 176 def warnCreditsOOR(self, studylevel, course=None): 177 studycourse = studylevel.__parent__ 178 certificate = getattr(studycourse,'certificate', None) 179 current_level = studycourse.current_level 180 if None in (current_level, certificate): 181 return 182 limit = 50 183 if current_level == 200 and certificate.code == 'RNS': 184 limit = 55 185 if course and studylevel.total_credits + course.credits > limit: 186 return _('Maximum credits exceeded.') 187 elif studylevel.total_credits > limit: 188 return _('Maximum credits exceeded.') 189 return
Note: See TracChangeset for help on using the changeset viewer.