Changeset 13800 for main/waeup.fceokene/trunk/src
- Timestamp:
- 5 Apr 2016, 06:12:48 (9 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
r13778 r13800 266 266 267 267 error, payment = utils.setPaymentDetails('clearance',self.student) 268 self.assertEqual(error, u'Acceptance Fee payments not allowed.') 269 IWorkflowState(self.student).setState('cleared') 270 error, payment = utils.setPaymentDetails('clearance',self.student) 268 271 self.assertEqual(payment.p_level, 100) 269 272 self.assertEqual(payment.p_session, 2004) … … 403 406 self.browser.getControl(name="form.p_category").value = ['schoolfee'] 404 407 self.browser.getControl("Create ticket").click() 405 self.assertMatches('... Payment temporarilydisabled...',408 self.assertMatches('...This category of payments has been disabled...', 406 409 self.browser.contents) 407 410 self.certificate.study_mode = 'ug_ft' -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r13779 r13800 20 20 from time import time 21 21 from zope.component import createObject, getUtility 22 from waeup.kofa.interfaces import CLEARED, RETURNING, PAID 22 from waeup.kofa.interfaces import ( 23 CLEARED, RETURNING, PAID, ADMITTED, CLEARANCE, REQUESTED) 23 24 from kofacustom.nigeria.students.utils import NigeriaStudentsUtils 24 25 from waeup.kofa.accesscodes import create_accesscode … … 113 114 except (AttributeError, TypeError): 114 115 return _('Study course data are incomplete.'), None 116 if student.state not in (ADMITTED, CLEARANCE, REQUESTED, CLEARED): 117 return _(u'Acceptance Fee payments not allowed.'), None 115 118 elif category == 'third_semester' and student.current_mode == 'nce_ft': 116 119 if student.depcode in ARTS: … … 270 273 return _('This type of payment has already been made.'), None 271 274 if self._isPaymentDisabled(p_session, category, student): 272 return _(' Payment temporarilydisabled.'), None275 return _('This category of payments has been disabled.'), None 273 276 payment = createObject(u'waeup.StudentOnlinePayment') 274 277 timestamp = ("%d" % int(time()*10000))[1:]
Note: See TracChangeset for help on using the changeset viewer.