Changeset 16583 for main/kofacustom.iuokada/trunk/src/kofacustom/iuokada
- Timestamp:
- 26 Aug 2021, 21:23:34 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r16571 r16583 106 106 return "%s must be paid before Tution Fee. Make either single payments or make a 'Required Combi Payment'." % ', '.join( 107 107 cats_missing.values()) 108 109 def samePaymentMade(self, student, category, p_item, p_session): 110 if category.startswith('resit'): 111 return False 112 for key in student['payments'].keys(): 113 ticket = student['payments'][key] 114 if ticket.p_state == 'paid' and\ 115 ticket.p_category == category and \ 116 ticket.p_item != 'Balance' and \ 117 ticket.p_item == p_item and \ 118 ticket.p_session == p_session: 119 return True 120 return False 108 121 109 122 def setPaymentDetails(self, category, student,
Note: See TracChangeset for help on using the changeset viewer.