Changeset 10388 for main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Timestamp:
- 27 Jun 2013, 07:33:45 (11 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
r10201 r10388 230 230 self.assertEqual(payment.p_level, 100) 231 231 self.assertEqual(payment.p_session, 2004) 232 self.assertEqual(payment.amount_auth, 12 495.0)232 self.assertEqual(payment.amount_auth, 12645.0) 233 233 self.assertEqual(payment.p_item, u'CERT1') 234 234 self.assertEqual(error, None) … … 243 243 self.assertEqual(payment.p_level, 200) 244 244 self.assertEqual(payment.p_session, 2005) 245 self.assertEqual(payment.amount_auth, 11 545.0)245 self.assertEqual(payment.amount_auth, 11695.0) 246 246 self.assertEqual(payment.p_item, u'CERT1') 247 247 self.assertEqual(error, None) 248 248 249 # UG students pay 65 150249 # UG students pay 65800 250 250 self.certificate.study_mode = 'ug_ft' 251 251 error, payment = utils.setPaymentDetails('schoolfee',self.student) 252 self.assertEqual(payment.amount_auth, 65 650.0)252 self.assertEqual(payment.amount_auth, 65800.0) 253 253 self.assertEqual(error, None) 254 254 … … 265 265 self.assertEqual(payment.p_level, 100) 266 266 self.assertEqual(payment.p_session, 2004) 267 self.assertEqual(payment.amount_auth, 120.0)267 self.assertEqual(payment.amount_auth, 270.0) 268 268 self.assertEqual(payment.p_item, u'CERT1') 269 269 self.assertEqual(error, None) … … 272 272 self.assertEqual(payment.p_level, 100) 273 273 self.assertEqual(payment.p_session, 2004) 274 self.assertEqual(payment.amount_auth, 150.0)274 self.assertEqual(payment.amount_auth, 300.0) 275 275 self.assertEqual(payment.p_item, u'') 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, 4 150.0)287 self.assertEqual(payment.amount_auth, 4300.0) 288 288 self.assertEqual(payment.p_item, u'My bed coordinates') 289 289 self.assertEqual(error, None) … … 293 293 self.assertEqual(payment.p_level, 100) 294 294 self.assertEqual(payment.p_session, 2004) 295 self.assertEqual(payment.amount_auth, 2 650.0)295 self.assertEqual(payment.amount_auth, 2800.0) 296 296 self.assertEqual(payment.p_item, u'My bed coordinates') 297 297 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, 150.0)302 self.assertEqual(payment.amount_auth, 300.0) 303 303 self.assertEqual(payment.p_item, u'') 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, 90.0)309 self.assertEqual(payment.amount_auth, 240.0) 310 310 self.assertEqual(payment.p_item, u'') 311 311 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r10026 r10388 27 27 from waeup.kofa.browser.interfaces import IPDFCreator 28 28 from waeup.kofa.students.utils import trans 29 from waeup.fceokene.interswitch.browser import GATEWAY_AMT 29 30 30 31 class CustomStudentsUtils(NigeriaStudentsUtils): … … 253 254 payment.p_level = p_level 254 255 payment.p_current = p_current 255 payment.amount_auth = float(amount) 256 # On June 26, 2013 FCEOkene realized that the Interswitch fee 257 # is deducted from their amount. Therefore, we add this fee here. 258 payment.amount_auth = float(amount) + GATEWAY_AMT 256 259 return None, payment 257 260
Note: See TracChangeset for help on using the changeset viewer.