Changeset 14938 for main/kofacustom.dspg/trunk/src/kofacustom/dspg/students
- Timestamp:
- 16 Jan 2018, 15:06:52 (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r14921 r14938 36 36 # prefix 37 37 STUDENT_ID_PREFIX = u'P' 38 39 def _dep_sug_paymentMade(self, student, session): 40 if len(student['payments']): 41 for ticket in student['payments'].values(): 42 if ticket.p_state == 'paid' and \ 43 ticket.p_category == 'dep_sug' and \ 44 ticket.p_session == session: 45 return True 46 return False 38 47 39 48 def setPaymentDetails(self, category, student, … … 87 96 amount = getattr(certificate, 'school_fee_4', 0.0) 88 97 else: 98 # Students are only allowed to pay school fee 99 # if current session dep_sug payment has been made. 100 if not self._dep_sug_paymentMade(student, 101 student.current_session): 102 return _('You have to pay NADESU/SA/SUG Dues first.'), None 89 103 if student.state == CLEARED: 90 104 if local(student): … … 164 178 amount = 13000.0 165 179 elif category == 'dep_sug': 166 amount = 2900.0 180 amount = 3150.0 # includes GATEWAY_AMT 181 if student.faccode == 'SPAT': 182 amount = 1650.0 # includes GATEWAY_AMT 167 183 else: 168 184 fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.