Changeset 14618 for main/waeup.fceokene/trunk/src/waeup
- Timestamp:
- 9 Mar 2017, 17:10:29 (8 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r14617 r14618 8 8 from waeup.fceokene.testing import FunctionalLayer 9 9 10 class BedAllocationTests(StudentsFullSetup):10 class StudentsUtilsTests(StudentsFullSetup): 11 11 12 12 layer = FunctionalLayer … … 58 58 studylevel = grok.Container() 59 59 studylevel.total_credits = 45 60 studylevel.__parent__ = self.student['studycourse'] 60 61 course = grok.Model() 61 62 course.credits = 7 -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r14617 r14618 294 294 elif student.current_level in (200, 210, 220): 295 295 amount += academic_session.penalty_nce3_ft 296 elif category == 'schoolfee' and student.current_mode in ( 297 'nce_ sw', 'nce_pt'):296 elif category == 'schoolfee' and student.current_mode in ('nce_sw', 297 'nce_pt') and student['studycourse'].previous_verdict != 'O': 298 298 # NCE I fresh 299 299 if student.current_level == 100 and student.state == CLEARED: … … 395 395 if studylevel.total_credits > 52: 396 396 return _('Maximum credits exceeded.') 397 if studylevel.__parent__.previous_verdict == 'O': 398 return 397 399 if studylevel.total_credits_s1 < 18: 398 400 return _('Minimum credits in 1st semester not reached.')
Note: See TracChangeset for help on using the changeset viewer.