Changeset 9728
- Timestamp:
- 27 Nov 2012, 11:17:29 (12 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
r9727 r9728 275 275 elif self.context.p_category.startswith('hostel_maintenance'): 276 276 self.pay_item_id = '5705' 277 provider_amt = 400277 provider_amt = 0 278 278 xmldict['institution_bank_id'] = '129' 279 279 xmldict['institution_acct'] = '0014414547' -
main/waeup.uniben/trunk/src/waeup/uniben/interswitch/tests.py
r9727 r9728 197 197 self.browser.getLink(value).click() 198 198 self.assertMatches( 199 '...<span>8 550.0</span>...',199 '...<span>8150.0</span>...', 200 200 self.browser.contents) 201 201 # Manager can access InterswitchForm … … 206 206 self.browser.contents) 207 207 self.assertMatches( 208 '...<input type="hidden" name="amount" value="8 55000.0" />...',208 '...<input type="hidden" name="amount" value="815000.0" />...', 209 209 self.browser.contents) 210 210 self.assertMatches( 211 211 '...<item_detail item_id="1" item_name="Hostel Maint. Fee" item_amt="800000" bank_id="129" acct_num="0014414547" />...', 212 212 self.browser.contents) 213 self.assertMatches( 214 '...item_name="BT Education" item_amt="40000" bank_id="117" acct_num="1010764827"...', 215 self.browser.contents) 216 213 self.assertFalse( 214 'item_name="BT Education"' in self.browser.contents) 217 215 218 216 # @external_test -
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9727 r9728 593 593 self.assertEqual(payment.p_level, 100) 594 594 self.assertEqual(payment.p_session, 2004) 595 self.assertEqual(payment.amount_auth, 8 550.0)595 self.assertEqual(payment.amount_auth, 8150.0) 596 596 self.assertEqual(payment.p_item, u'Hall 1-4 M/F Ekehuan') 597 597 self.assertEqual(error, None) … … 601 601 self.assertEqual(payment.p_level, 100) 602 602 self.assertEqual(payment.p_session, 2004) 603 self.assertEqual(payment.amount_auth, 1 3050.0)603 self.assertEqual(payment.amount_auth, 12650.0) 604 604 self.assertEqual(payment.p_item, u'Hall 5 M/F') 605 605 self.assertEqual(error, None) … … 609 609 self.assertEqual(payment.p_level, 100) 610 610 self.assertEqual(payment.p_session, 2004) 611 self.assertEqual(payment.amount_auth, 10050.0)611 self.assertEqual(payment.amount_auth, 9650.0) 612 612 self.assertEqual(payment.p_item, u'Clinical Hostel') 613 613 self.assertEqual(error, None) -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r9727 r9728 101 101 amount = academic_session.maint_fee 102 102 elif category == 'tempmaint_1': 103 amount = 8 550.0103 amount = 8150.0 104 104 elif category == 'tempmaint_2': 105 amount = 1 3050.0105 amount = 12650.0 106 106 elif category == 'tempmaint_3': 107 amount = 10050.0107 amount = 9650.0 108 108 elif category == 'clearance': 109 109 try:
Note: See TracChangeset for help on using the changeset viewer.