- Timestamp:
- 19 Sep 2019, 13:30:53 (5 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/applicants/interfaces.py
r15111 r15594 69 69 70 70 def getTitle(self, value): 71 if not SCHOOLS.get(value, None): 72 return u"none-existent" 71 73 return u"%s: %s -- %s" % ( 72 74 SCHOOLS[value][0], -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r15507 r15594 229 229 self.assertEqual(payment.p_level, 100) 230 230 self.assertEqual(payment.p_session, 2004) 231 self.assertEqual(payment.amount_auth, 70 457.5)231 self.assertEqual(payment.amount_auth, 70000) 232 232 self.assertEqual(payment.p_item, u'CERT1') 233 233 self.assertEqual(error, None) … … 242 242 self.assertEqual(payment.p_level, 200) 243 243 self.assertEqual(payment.p_session, 2005) 244 self.assertEqual(payment.amount_auth, 35 457.5)244 self.assertEqual(payment.amount_auth, 35300) 245 245 self.assertEqual(payment.p_item, u'CERT1') 246 246 self.assertEqual(error, None) … … 249 249 self.certificate.study_mode = 'ug_ft' 250 250 error, payment = utils.setPaymentDetails('schoolfee',self.student) 251 self.assertEqual(payment.amount_auth, 56 307.5)251 self.assertEqual(payment.amount_auth, 56150) 252 252 self.assertEqual(error, None) 253 253 # UG cleared students pay 65650 254 254 IWorkflowState(self.student).setState('cleared') 255 255 error, payment = utils.setPaymentDetails('schoolfee',self.student) 256 self.assertEqual(payment.amount_auth, 65 807.5)256 self.assertEqual(payment.amount_auth, 65650) 257 257 self.assertEqual(error, None) 258 258 … … 272 272 self.assertEqual(payment.p_level, 100) 273 273 self.assertEqual(payment.p_session, 2004) 274 self.assertEqual(payment.amount_auth, 277.5)274 self.assertEqual(payment.amount_auth, 120) 275 275 self.assertEqual(payment.p_item, u'CERT1') 276 276 self.assertEqual(error, None) … … 285 285 self.assertEqual(payment.p_level, 100) 286 286 self.assertEqual(payment.p_session, 2004) 287 self.assertEqual(payment.amount_auth, 1033.5)287 self.assertEqual(payment.amount_auth, 876) 288 288 self.assertEqual(payment.p_item, u'My bed coordinates') 289 289 self.assertEqual(error, None) … … 292 292 self.assertEqual(payment.p_level, 100) 293 293 self.assertEqual(payment.p_session, 2004) 294 self.assertEqual(payment.amount_auth, 8095.5)294 self.assertEqual(payment.amount_auth, 7938) 295 295 self.assertEqual(payment.p_item, u'') 296 296 self.assertEqual(error, None) … … 300 300 self.assertEqual(payment.p_level, 100) 301 301 self.assertEqual(payment.p_session, 2004) 302 self.assertEqual(payment.amount_auth, 705.0) # 62.5% * 876 + 157.5302 self.assertEqual(payment.amount_auth, 547.5) # 62.5% * 876 303 303 self.assertEqual(payment.p_item, u'My bed coordinates') 304 304 self.assertEqual(error, None) … … 307 307 self.assertEqual(payment.p_level, 100) 308 308 self.assertEqual(payment.p_session, 2004) 309 self.assertEqual(payment.amount_auth, 307.5)309 self.assertEqual(payment.amount_auth, 150) 310 310 self.assertEqual(payment.p_item, u'') 311 311 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_utils.py
r15300 r15594 84 84 IWorkflowState(self.student).setState('returning') 85 85 error, payment = utils.setPaymentDetails('schoolfee',self.student) 86 self.assertEqual(payment.amount_auth, 1 6131.5) # 15875 + 157.5 + 9986 self.assertEqual(payment.amount_auth, 15974) # 15875 + 99 87 87 self.student['studycourse'].previous_verdict = 'O' 88 88 error, payment = utils.setPaymentDetails('schoolfee',self.student) 89 self.assertEqual(payment.amount_auth, 1 6032.5) # 15875 + 157.589 self.assertEqual(payment.amount_auth, 15875) 90 90 return -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r15523 r15594 38 38 'NFRE','NARB','NHAU','NIGB','NYOR','NSOS') 39 39 40 GATEWAY_AMT = 157.5040 GATEWAY_AMT = 0.0 41 41 42 42 class CustomStudentsUtils(NigeriaStudentsUtils):
Note: See TracChangeset for help on using the changeset viewer.