Changeset 16011 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 23 Feb 2020, 20:15:50 (5 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r16009 r16011 289 289 290 290 error, payment = utils.setPaymentDetails('third_semester',self.student) 291 self.assertEqual(error, u'Amount could not be determined.') 292 self.student['studycourse'].current_level = 300 293 error, payment = utils.setPaymentDetails('third_semester',self.student) 291 294 self.assertEqual(error, u'Make NCE 3 school fee payment first.') 292 295 payment = createObject('waeup.StudentOnlinePayment') … … 299 302 payment.p_level = 300 300 303 error, payment = utils.setPaymentDetails('third_semester',self.student) 301 self.assertEqual(payment.p_level, 100)304 self.assertEqual(payment.p_level, 300) 302 305 self.assertEqual(payment.p_session, 2004) 303 306 self.assertEqual(payment.amount_auth, 7938) … … 307 310 self.certificate.study_mode = u'nce_sw' 308 311 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 309 self.assertEqual(payment.p_level, 100)312 self.assertEqual(payment.p_level, 300) 310 313 self.assertEqual(payment.p_session, 2004) 311 314 self.assertEqual(payment.amount_auth, 547.5) # 62.5% * 876 … … 314 317 315 318 error, payment = utils.setPaymentDetails('bed_allocation',self.student) 316 self.assertEqual(payment.p_level, 100)319 self.assertEqual(payment.p_level, 300) 317 320 self.assertEqual(payment.p_session, 2004) 318 321 self.assertEqual(payment.amount_auth, 150) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r16010 r16011 126 126 if student.state not in (ADMITTED, CLEARANCE, REQUESTED, CLEARED): 127 127 return _(u'Acceptance Fee payments not allowed.'), None 128 elif category == 'third_semester' and student.current_mode == 'nce_ft': 128 elif category == 'third_semester' and student.current_mode == 'nce_ft' \ 129 and p_level == 300: 129 130 if not self._nce3PaymentMade(student): 130 131 return _(u'Make NCE 3 school fee payment first.'), None
Note: See TracChangeset for help on using the changeset viewer.