- Timestamp:
- 26 May 2021, 21:58:34 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/students/utils.py
r16478 r16493 90 90 return False 91 91 92 def _lsfp_penalty_paymentMade(self, student, session): 92 def _lsfp_penalty_payment(self, student, p_session): 93 if p_session >= 2021: 94 return False 95 if p_session == 2020 and student.current_mode != 'nce_ft': 96 return False 93 97 if student.current_mode not in ('ug_ft','de_ft', 'nce_ft', 'nce_pt'): 94 return True98 return False 95 99 if len(student['payments']): 96 100 for ticket in student['payments'].values(): 97 101 if ticket.p_state == 'paid' and \ 98 102 ticket.p_category == 'lsfp_penalty' and \ 99 ticket.p_session == s ession:100 return True101 return False103 ticket.p_session == student.current_session: 104 return False 105 return True 102 106 103 107 def setPaymentDetails(self, category, student, … … 143 147 return _(u'Session configuration object ' 144 148 'is not available.'), None 145 penalty = getattr(academic_session, 'lsfp_penalty_fee') 146 if p_session < 2020 and penalty and \ 147 not self._lsfp_penalty_paymentMade( 148 student, student.current_session): 149 penalty_set = getattr(academic_session, 'lsfp_penalty_fee') 150 if penalty_set and self._lsfp_penalty_payment(student, p_session): 149 151 return _('You have to pay late school fee payment penalty first.'), None 150 152 if p_level in PAYMENT_LEVELS:
Note: See TracChangeset for help on using the changeset viewer.