Changeset 14255 for main/waeup.kwarapoly
- Timestamp:
- 3 Nov 2016, 08:23:24 (8 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r14230 r14255 144 144 self.assertMatches('...Amount Authorized...', self.browser.contents) 145 145 self.assertTrue( 146 '<span> 42500.0</span>' in self.browser.contents)146 '<span>29500.0</span>' in self.browser.contents) 147 147 self.payment_url = self.browser.url 148 148 … … 159 159 self.browser.contents) 160 160 self.assertTrue( 161 '<input type="hidden" name="amount" value=" 4250000" />' in162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt=" 3920000" bank_id="10" acct_num="0106259811"' in161 '<input type="hidden" name="amount" value="2950000" />' in 162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt="2620000" bank_id="10" acct_num="0106259811"' in 165 165 self.browser.contents) 166 166 self.assertTrue( -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r14222 r14255 248 248 self.assertEqual(payment.p_level, 200) 249 249 self.assertEqual(payment.p_session, 2005) 250 self.assertEqual(payment.amount_auth, 48500.0)250 self.assertEqual(payment.amount_auth, 35090.0) 251 251 self.assertEqual(payment.p_item, u'CERT1') 252 252 self.assertEqual(error, None) … … 254 254 configuration.penalty_ug = 5000.0 255 255 error, payment = utils.setPaymentDetails('schoolfee',self.student) 256 self.assertEqual(payment.amount_auth, 53500.0)256 self.assertEqual(payment.amount_auth, 40090.0) 257 257 self.assertEqual(error, None) 258 258 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r14222 r14255 56 56 ( 57 57 ( # 10 100 110 200 210 300 400 410 500 510 600 999 58 (34500.0, 55500.0, 44500.0, 42500.0, 44500.0, 0.0, 62000.0, 46500.0, 44000.0, 46500.0, 0.0, 48750.0), # science59 (34500.0, 52500.0, 41500.0, 39500.0, 41500.0, 0.0, 59000.0, 43500.0, 41000.0, 43500.0, 0.0, 47200.0) # arts58 (34500.0, 55500.0, 34600.0, 29500.0, 34600.0, 0.0, 62000.0, 36600.0, 32700.0, 36600.0, 0.0, 48750.0), # science 59 (34500.0, 52500.0, 31600.0, 32500.0, 31600.0, 0.0, 59000.0, 33600.0, 35700.0, 33600.0, 0.0, 47200.0) # arts 60 60 ), # local 61 61 ( # 10 100 110 200 210 300 400 410 500 510 600 999 62 (49600.0, 75500.0, 55500.0, 48500.0, 55500.0, 0.0, 79000.0, 59500.0, 51000.0, 59500.0, 0.0, 63180.0), # science63 (49600.0, 72500.0, 52500.0, 45500.0, 52500.0, 0.0, 76000.0, 56500.0, 48000.0, 56500.0, 0.0, 61680.0) # arts62 (49600.0, 75500.0, 42100.0, 35090.0, 42100.0, 0.0, 79000.0, 46600.0, 38900.0, 46600.0, 0.0, 63180.0), # science 63 (49600.0, 72500.0, 39100.0, 32090.0, 39100.0, 0.0, 76000.0, 43600.0, 35900.0, 43600.0, 0.0, 61680.0) # arts 64 64 ), # non-local 65 65 ), # ft 66 66 ( 67 67 ( # 10 100 110 200 210 300 400 410 500 510 600 999 68 (0.0, 56000.0, 44500.0, 44000.0, 44500.0, 44000.0, 56500.0, 46500.0, 45000.0, 46500.0, 45000.0, 0.0), # science69 (0.0, 53000.0, 41500.0, 41000.0, 41500.0, 41000.0, 53500.0, 43500.0, 42000.0, 43500.0, 42000.0, 0.0) # arts68 (0.0, 56000.0, 34600.0, 34400.0, 34600.0, 34400.0, 56500.0, 36600.0, 36500.0, 36600.0, 36500.0, 0.0), # science 69 (0.0, 53000.0, 31600.0, 31400.0, 31600.0, 31400.0, 53500.0, 33600.0, 33500.0, 33600.0, 33500.0, 0.0) # arts 70 70 ), # local 71 71 ( # 10 100 110 200 210 300 400 410 500 510 600 999 72 (0.0, 73000.0, 55500.0, 50000.0, 55500.0, 50000.0, 78000.0, 59500.0, 60000.0, 58500.0, 60000.0, 0.0), # science73 (0.0, 70000.0, 52500.0, 47000.0, 52500.0, 47000.0, 75000.0, 56500.0, 57000.0, 56500.0, 57000.0, 0.0) # arts72 (0.0, 73000.0, 42100.0, 37350.0, 42100.0, 37350.0, 78000.0, 46600.0, 46850.0, 46600.0, 46850.0, 0.0), # science 73 (0.0, 70000.0, 39100.0, 34350.0, 39100.0, 34350.0, 75000.0, 43600.0, 43850.0, 43600.0, 43850.0, 0.0) # arts 74 74 ), # non-local 75 75 ), # we
Note: See TracChangeset for help on using the changeset viewer.