Changeset 16762 for main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Timestamp:
- 31 Jan 2022, 09:01:03 (3 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r16760 r16762 332 332 # amount_auth is being ignored. However, the sum of all split payments 333 333 # must coincide with the amount_auth configured in students/utils.py 334 xmldict['amt1'] = 100 * 1000335 xmldict['amt2'] = 100 * 500334 xmldict['amt1'] = 100 * 2000 335 xmldict['amt2'] = 100 * 1000 336 336 xmldict['amt3'] = 100 * 900 337 xmldict['amt4'] = 100 * 500337 xmldict['amt4'] = 100 * 1000 338 338 339 339 xmltext = """<payment_item_detail> -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r16760 r16762 227 227 self.browser.getControl("Create ticket").click() 228 228 self.assertMatches('...ticket created...', self.browser.contents) 229 self.assertTrue('<span> 3150.0</span>' in self.browser.contents)230 self.payment_url = self.browser.url 231 self.browser.getLink("Pay via Interswitch", index=0).click() 232 self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt=" 100000" bank_id="11" acct_num="0038079930" />'233 in self.browser.contents) 234 self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt=" 50000" bank_id="11" acct_num="0037892949" />'229 self.assertTrue('<span>5150.0</span>' in self.browser.contents) 230 self.payment_url = self.browser.url 231 self.browser.getLink("Pay via Interswitch", index=0).click() 232 self.assertTrue('<item_detail item_id="1" item_name="SUG" item_amt="200000" bank_id="11" acct_num="0038079930" />' 233 in self.browser.contents) 234 self.assertTrue('<item_detail item_id="2" item_name="Students Welfare" item_amt="100000" bank_id="11" acct_num="0037892949" />' 235 235 in self.browser.contents) 236 236 self.assertTrue('<item_detail item_id="3" item_name="Anti-Cult Book" item_amt="90000" bank_id="11" acct_num="0037892949" />' 237 237 in self.browser.contents) 238 self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt=" 50000" bank_id="11" acct_num="0036375968" />'238 self.assertTrue('<item_detail item_id="4" item_name="NADESSTU" item_amt="100000" bank_id="11" acct_num="0036375968" />' 239 239 in self.browser.contents) 240 240 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/tests/test_utils.py
r16760 r16762 87 87 self.assertEqual(payment.p_level, 200) 88 88 self.assertEqual(payment.p_session, 2005) 89 self.assertEqual(payment.amount_auth, 3150.0)89 self.assertEqual(payment.amount_auth, 5150.0) 90 90 # Students can pay school fee if dep_sug and gns dues have been paid first. 91 91 error, payment = utils.setPaymentDetails('schoolfee',self.student) -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py
r16760 r16762 281 281 return _(u'No bed allocated.'), None 282 282 elif category == 'dep_sug': 283 amount = 3150.0 # includes GATEWAY_AMT283 amount = 5150.0 # includes GATEWAY_AMT 284 284 #if student.faccode == 'SPAT': 285 285 # amount = 1650.0 # includes GATEWAY_AMT
Note: See TracChangeset for help on using the changeset viewer.