Changeset 14218
- Timestamp:
- 19 Oct 2016, 11:04:49 (8 years ago)
- Location:
- main/waeup.kwarapoly/trunk/src/waeup/kwarapoly
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interfaces.py
r13891 r14218 232 232 required = True, 233 233 ) 234 ijmb_result_fee = schema.Float( 235 title = _(u'IJMB Result Fee'), 236 default = 0.0, 237 required = True, 238 ) 234 239 penalty_ug = schema.Float( 235 240 title = _(u'UG Penalty Fee'), -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/browser.py
r14074 r14218 88 88 'utme_cbt': ('143', 6.0, 9.0, '0106259811', '10'), 89 89 'nysc_id_card': ('144', 6.0, 9.0, '0106259811', '10'), 90 'ijmb_result': ('147', 200.0, 300.0, '0106259811', '10'), 90 91 } 91 92 … … 173 174 dalash_amt = 0.0 174 175 provider_amt = 0.0 176 elif 'clearance' in self.context.p_category: 177 self.pay_item_id = '146' 178 xmldict['institution_acct'] = "0106259811" 179 xmldict['institution_bank_id'] = '10' 180 dalash_amt = 200.0 181 provider_amt = 300.0 175 182 else: 176 183 xmldict['institution_acct'] = "0000000000000" -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r14074 r14218 110 110 self.assertMatches('...Amount Authorized...', 111 111 self.browser.contents) 112 self.assertTrue('<span> 40700.0</span>' in self.browser.contents)112 self.assertTrue('<span>55500.0</span>' in self.browser.contents) 113 113 self.payment_url = self.browser.url 114 114 … … 144 144 self.assertMatches('...Amount Authorized...', self.browser.contents) 145 145 self.assertTrue( 146 '<span> 31500.0</span>' in self.browser.contents)146 '<span>42500.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=" 3150000" />' in162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt=" 2820000" bank_id="10" acct_num="0106259811"' in161 '<input type="hidden" name="amount" value="4250000" />' in 162 self.browser.contents) 163 self.assertTrue( 164 'item_name="School Fee" item_amt="3920000" bank_id="10" acct_num="0106259811"' in 165 165 self.browser.contents) 166 166 self.assertTrue( … … 386 386 self.browser.open(self.payments_path + '/xyz') 387 387 self.browser.getLink("CollegePAY", index=0).click() 388 self.assertTrue('<input type="hidden" name="pay_item_id" value=" 000" />'388 self.assertTrue('<input type="hidden" name="pay_item_id" value="146" />' 389 389 in self.browser.contents) 390 390 self.assertMatches('...Total Amount Authorized:...', -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/browser.py
r14164 r14218 129 129 class CustomStartClearancePage(StartClearancePage): 130 130 131 with_ac = False131 with_ac = True 132 132 133 133 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/tests/test_browser.py
r13891 r14218 235 235 self.assertEqual(payment.p_level, 100) 236 236 self.assertEqual(payment.p_session, 2004) 237 self.assertEqual(payment.amount_auth, 55200.0)237 self.assertEqual(payment.amount_auth, 77500.0) 238 238 self.assertEqual(payment.p_item, u'CERT1') 239 239 self.assertEqual(error, None) … … 248 248 self.assertEqual(payment.p_level, 200) 249 249 self.assertEqual(payment.p_session, 2005) 250 self.assertEqual(payment.amount_auth, 34090.0)250 self.assertEqual(payment.amount_auth, 50500.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, 39090.0)256 self.assertEqual(payment.amount_auth, 55500.0) 257 257 self.assertEqual(error, None) 258 258 … … 339 339 # In KwaraPoly the students can just start clearance without entering 340 340 # an activation code. 341 self.browser.getControl("Start clearance now").click() 342 self.assertMatches('...Clearance process has been started...', 343 self.browser.contents) 341 # Deactivated on 19/10/2016 342 #self.browser.getControl("Start clearance now").click() 343 #self.assertMatches('...Clearance process has been started...', 344 # self.browser.contents) 344 345 345 346 def test_change_passport(self): -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/students/utils.py
r13891 r14218 56 56 ( 57 57 ( # 10 100 110 200 210 300 400 410 500 510 600 999 58 (34500.0, 40700.0, 33600.0, 31500.0, 33600.0, 0.0, 46200.0, 35600.0, 34700.0, 35600.0, 0.0, 48750.0), # science59 (34500.0, 38700.0, 31600.0, 29500.0, 31600.0, 0.0, 44200.0, 33600.0, 32700.0, 33600.0, 0.0, 47200.0) # arts58 (34500.0, 55500.0, 46500.0, 42500.0, 46500.0, 0.0, 63000.0, 48500.0, 46000.0, 48500.0, 0.0, 48750.0), # science 59 (34500.0, 52500.0, 41500.0, 39500.0, 41500.0, 0.0, 59000.0, 43500.0, 41000.0, 43500.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, 55200.0, 41100.0, 34090.0, 41100.0, 0.0, 60700.0, 45600.0, 37900.0, 45600.0, 0.0, 63180.0), # science63 (49600.0, 53200.0, 39100.0, 32090.0, 39100.0, 0.0, 58700.0, 43600.0, 35900.0, 43600.0, 0.0, 61680.0) # arts62 (49600.0, 77500.0, 57500.0, 50500.0, 57500.0, 0.0, 81000.0, 61500.0, 53000.0, 61500.0, 0.0, 63180.0), # science 63 (49600.0, 72500.0, 52500.0, 45500.0, 52500.0, 0.0, 76000.0, 56500.0, 48000.0, 56500.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, 42000.0, 33600.0, 33400.0, 33600.0, 33400.0, 42400.0, 35600.0, 35500.0, 35600.0, 35500.0, 0.0), # science69 (0.0, 40000.0, 31600.0, 31400.0, 31600.0, 31400.0, 40400.0, 33600.0, 33500.0, 33600.0, 33500.0, 0.0) # arts68 (0.0, 58000.0, 46500.0, 46000.0, 46500.0, 46000.0, 58500.0, 48500.0, 47000.0, 48500.0, 47000.0, 0.0), # science 69 (0.0, 53000.0, 41500.0, 41000.0, 41500.0, 41000.0, 53500.0, 43500.0, 42000.0, 43500.0, 42000.0, 0.0) # arts 70 70 ), # local 71 71 ( # 10 100 110 200 210 300 400 410 500 510 600 999 72 (0.0, 56700.0, 41100.0, 36350.0, 41100.0, 36350.0, 57600.0, 45600.0, 45850.0, 45600.0, 45850.0, 0.0), # science73 (0.0, 54700.0, 39100.0, 34350.0, 39100.0, 34350.0, 55600.0, 43600.0, 43850.0, 43600.0, 43850.0, 0.0) # arts72 (0.0, 75000.0, 57500.0, 52000.0, 57500.0, 52000.0, 80000.0, 61500.0, 62000.0, 61500.0, 62000.0, 0.0), # science 73 (0.0, 70000.0, 52500.0, 47000.0, 52500.0, 47000.0, 75000.0, 56500.0, 57000.0, 56500.0, 57000.0, 0.0) # arts 74 74 ), # non-local 75 75 ), # we -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/utils/utils.py
r13653 r14218 100 100 'utme_registration': 'UTME Registration', 101 101 'utme_cbt': 'UTME CBT', 102 'nysc_id_card': 'NYSC ID Card' 102 'nysc_id_card': 'NYSC ID Card', 103 'ijmb_result':'IJMB Result', 103 104 } 104 105 … … 141 142 'utme_registration': 'UTME Registration', 142 143 'utme_cbt': 'UTME CBT', 143 'nysc_id_card': 'NYSC ID Card' 144 'nysc_id_card': 'NYSC ID Card', 145 'ijmb_result':'IJMB Result', 144 146 } 145 147 … … 189 191 'utme_registration': 'UTME Registration', 190 192 'utme_cbt': 'UTME CBT', 191 'nysc_id_card': 'NYSC ID Card' 193 'nysc_id_card': 'NYSC ID Card', 194 'ijmb_result':'IJMB Result', 192 195 }
Note: See TracChangeset for help on using the changeset viewer.