Changeset 17102
- Timestamp:
- 15 Sep 2022, 16:49:06 (2 years ago)
- Location:
- main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/tests/test_utils.py
r15386 r17102 69 69 configuration.academic_session = 2005 70 70 self.app['configuration'].addSessionConfiguration(configuration) 71 self.app['configuration']['2004'].ict_entre_fee = 170.072 self.app['configuration']['2005'].ict_entre_fee = 180.071 self.app['configuration']['2004'].ict_entre_fee = 4170.0 72 self.app['configuration']['2005'].ict_entre_fee = 2180.0 73 73 error, payment = utils.setPaymentDetails('schoolfee',self.student) 74 74 self.assertEqual(error, u'Pay ICT fee(s) first.') … … 77 77 self.assertEqual(payment.p_level, 200) 78 78 self.assertEqual(payment.p_session, 2005) 79 self.assertEqual(payment.amount_auth, 16000.0)79 self.assertEqual(payment.amount_auth, 2180.0) 80 80 payment.p_state = 'paid' 81 81 self.student['payments']['any_key'] = payment … … 91 91 self.assertEqual(payment.p_level, 100) 92 92 self.assertEqual(payment.p_session, 2004) 93 self.assertEqual(payment.amount_auth, 16000.0)93 self.assertEqual(payment.amount_auth, 4170.0) 94 94 payment.p_state = 'paid' 95 95 self.student['payments']['any_key_2'] = payment -
main/kofacustom.edopoly/trunk/src/kofacustom/edopoly/students/utils.py
r15679 r17102 221 221 else: 222 222 return _(u'No bed allocated.'), None 223 elif category == 'ict_entre':224 amount = 11000.0225 if student['studycourse'].entry_session < 2018:226 amount = 16000.0227 223 else: 228 224 fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.