Changeset 14233 for main/waeup.uniben
- Timestamp:
- 27 Oct 2016, 14:04:11 (8 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/browser.py
r14214 r14233 83 83 if self.context.p_category == 'schoolfee': 84 84 if not self.context.p_item == 'Balance': 85 provider_amt = 1500.085 provider_amt = 2500.0 86 86 if student.current_mode.endswith('_ft'): 87 87 self.pay_item_id = '5700' … … 92 92 elif self.context.p_category == 'clearance': 93 93 self.pay_item_id = '5702' 94 provider_amt = 1500.094 provider_amt = 2500.0 95 95 elif self.context.p_category == 'gown': 96 96 self.pay_item_id = '5704' -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r14214 r14233 95 95 in self.browser.contents) 96 96 self.assertTrue( 97 'item_name="School Fee" item_amt="3 835000" bank_id="8" acct_num="2017506430"'98 in self.browser.contents) 99 self.assertTrue( 100 'item_name="BT Education" item_amt=" 150000" bank_id="117" acct_num="1014261520"'97 'item_name="School Fee" item_amt="3735000" bank_id="8" acct_num="2017506430"' 98 in self.browser.contents) 99 self.assertTrue( 100 'item_name="BT Education" item_amt="250000" bank_id="117" acct_num="1014261520"' 101 101 in self.browser.contents) 102 102 … … 130 130 self.browser.getLink("CollegePAY", index=0).click() 131 131 # Split amounts have been set. 132 self.assertEqual(self.student['payments'][value].provider_amt, 1500.0)132 self.assertEqual(self.student['payments'][value].provider_amt, 2500.0) 133 133 self.assertEqual(self.student['payments'][value].gateway_amt, 150.0) 134 134 self.assertTrue('<input type="hidden" name="pay_item_id" value="5701" />' … … 138 138 in self.browser.contents) 139 139 self.assertTrue( 140 'item_name="School Fee" item_amt="1 835000" bank_id="8" acct_num="2017506430"'141 in self.browser.contents) 142 self.assertTrue( 143 'item_name="BT Education" item_amt=" 150000" bank_id="117" acct_num="1014261520"'140 'item_name="School Fee" item_amt="1735000" bank_id="8" acct_num="2017506430"' 141 in self.browser.contents) 142 self.assertTrue( 143 'item_name="BT Education" item_amt="250000" bank_id="117" acct_num="1014261520"' 144 144 in self.browser.contents) 145 145 -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r13777 r14233 606 606 self.assertEqual(payment.p_level, 100) 607 607 self.assertEqual(payment.p_session, 2004) 608 self.assertEqual(payment.amount_auth, 45000.0)608 self.assertEqual(payment.amount_auth, 50000.0) 609 609 self.assertEqual(payment.p_item, u'CERT1') 610 610 self.assertEqual(error, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r14038 r14233 247 247 elif p_item in ('BSCANA', 'BSCMBC', 'BMLS', 'BSCNUR', 'BSCPHS', 'BDS', 248 248 'MBBSMED', 'MBBSNDU'): 249 amount = 65000.0250 else: 251 amount = 45000.0249 amount = 70000.0 250 else: 251 amount = 50000.0 252 252 elif category == 'schoolfee': 253 253 try:
Note: See TracChangeset for help on using the changeset viewer.