Changeset 14963
- Timestamp:
- 7 Mar 2018, 14:34:58 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r14956 r14963 45 45 return True 46 46 return False 47 48 def getReturningData(self, student): 49 """ This method defines what happens after school fee payment 50 of returning students depending on the student's senate verdict. 51 """ 52 prev_level = student['studycourse'].current_level 53 cur_verdict = student['studycourse'].current_verdict 54 if cur_verdict in ('A','B','L','M','N','Z',): 55 # Successful student 56 new_level = divmod(int(prev_level),100)[0]*100 + 100 57 elif cur_verdict == 'C': 58 # Student on probation 59 new_level = int(prev_level) + 10 60 else: 61 # Student is somehow in an undefined state. 62 # Level has to be set manually. 63 new_level = prev_level 64 new_session = student['studycourse'].current_session + 1 65 return new_session, new_level 47 66 48 67 def setPaymentDetails(self, category, student,
Note: See TracChangeset for help on using the changeset viewer.