Changeset 16338
- Timestamp:
- 1 Dec 2020, 07:16:35 (4 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r16319 r16338 67 67 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 68 68 self.browser.getControl("Create ticket").click() 69 self.assertTrue('You have to pay NADESU/SA/SUG Dues first'69 self.assertTrue('You have to pay NADESU/SA/SUG and GNS Dues first' 70 70 in self.browser.contents) 71 71 payment = createObject('waeup.StudentOnlinePayment') -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py
r16319 r16338 90 90 # Students can pay school fee if dep_sug and gns dues have been paid first. 91 91 error, payment = utils.setPaymentDetails('schoolfee',self.student) 92 self.assertEqual(error, u'You have to pay NADESU/SA/SUG Dues first.')92 self.assertEqual(error, u'You have to pay NADESU/SA/SUG and GNS Dues first.') 93 93 error, payment = utils.setPaymentDetails('dep_sug',self.student) 94 94 self.student['payments']['any_key'] = payment 95 95 error, payment = utils.setPaymentDetails('schoolfee',self.student) 96 self.assertEqual(error, u'You have to pay NADESU/SA/SUG Dues first.')96 self.assertEqual(error, u'You have to pay NADESU/SA/SUG and GNS Dues first.') 97 97 98 98 configuration.gns_1_fee = 1150.0 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r16319 r16338 53 53 ticket.p_session == session: 54 54 gns = True 55 if dep_sug : # and gns: deactivated on 13/11/2055 if dep_sug and gns: 56 56 return True 57 57 return False … … 174 174 if student.faccode != 'SPAT' and not self._dep_sug_gns_paymentMade( 175 175 student, student.current_session): 176 #return _('You have to pay NADESU/SA/SUG and GNS Dues first.'), None 177 return _('You have to pay NADESU/SA/SUG Dues first.'), None 176 return _('You have to pay NADESU/SA/SUG and GNS Dues first.'), None 178 177 penalty = getattr(academic_session, 'lsfp_penalty_fee') 179 178 if penalty and not self._lsfp_penalty_paymentMade(
Note: See TracChangeset for help on using the changeset viewer.