Ignore:
Timestamp:
14 Jun 2022, 11:34:52 (2 years ago)
Author:
Henrik Bettermann
Message:

Tech fee conditions are becoming adventurous.

File:
1 edited

Legend:

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

    r16948 r16963  
    3131
    3232def MICROSOFT_FEE(student):
    33     if student.state == CLEARED:
     33    if student.state == CLEARED \
     34        or (student.current_level in (100, 110, 120, 130)
     35            and student.current_verdict == 'C') \
     36        or (student.current_level in (300, 310, 320, 330) \
     37            and student.current_mode == 'hnd_ft') \
     38            and student.current_verdict == 'C'):
    3439        return 5950.0
    3540    return 0.0
     
    4146
    4247def TECH_FEE(student):
    43     if student.state == CLEARED:
     48    if student.state == CLEARED \
     49        or (student.current_level in (100, 110, 120, 130)
     50            and student.current_verdict == 'C') \
     51        or (student.current_level in (300, 310, 320, 330) \
     52            and student.current_mode == 'hnd_ft') \
     53            and student.current_verdict == 'C'):
    4454        return 4250.0
    4555    return 1200.0
     
    119129        of returning students depending on the student's senate verdict.
    120130        """
    121         prev_level = student['studycourse'].current_level
    122         cur_verdict = student['studycourse'].current_verdict
     131        prev_level = student.current_level
     132        cur_verdict = student.current_verdict
    123133        if cur_verdict in ('A','B','L','M','N','Z',):
    124134            # Successful student
Note: See TracChangeset for help on using the changeset viewer.