Changeset 13438 for main/waeup.aaue/trunk/src
- Timestamp:
- 11 Nov 2015, 19:49:12 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r13437 r13438 50 50 51 51 def gateway_net_amt(fee): 52 if fee > 2000:52 if fee > GATEWAY_AMT: 53 53 return fee - GATEWAY_AMT 54 return round(fee * 0.985, 2)54 return 0.0 55 55 56 56 def contr_agreement(student): -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r13437 r13438 121 121 self.browser.getLink(self.value).click() 122 122 self.assertTrue('Amount Authorized' in self.browser.contents) 123 # 50250 + 0.985 * (1000 + 500)124 self.assertTrue('<span>51 727.5</span>' in self.browser.contents)123 # 50250 + 1000 + 500 -500 124 self.assertTrue('<span>51250.0</span>' in self.browser.contents) 125 125 self.payment_url = self.browser.url 126 126 self.browser.getLink("CollegePAY", index=0).click() … … 137 137 self.assertEqual(self.student.current_mode, 'ug_pt') 138 138 self.assertTrue( 139 '<input type="hidden" name="amount" value="51 72750" />'139 '<input type="hidden" name="amount" value="5125000" />' 140 140 in self.browser.contents) 141 141 self.assertTrue( … … 204 204 self.browser.getLink(self.value).click() 205 205 self.assertTrue('Amount Authorized' in self.browser.contents) 206 # 40250 + 0.985 * (2000 + 800)207 self.assertTrue('<span>4 3008.0</span>' in self.browser.contents)206 # 40250 + 2000 + 800 - 500 207 self.assertTrue('<span>42550.0</span>' in self.browser.contents) 208 208 self.payment_url = self.browser.url 209 209 self.browser.getLink("CollegePAY", index=0).click() … … 212 212 self.assertTrue('Total Amount Authorized:' in self.browser.contents) 213 213 self.assertTrue( 214 '<input type="hidden" name="amount" value="4 300800" />'214 '<input type="hidden" name="amount" value="4255000" />' 215 215 in self.browser.contents) 216 216 self.assertTrue( … … 276 276 in self.browser.contents) 277 277 self.assertTrue( 278 'item_name="Concessional Fee" item_amt="1 54349" '278 'item_name="Concessional Fee" item_amt="131700" ' 279 279 'bank_id="117" acct_num="1010835352"' 280 280 in self.browser.contents) -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r13437 r13438 300 300 self.student['studycourse'].entry_session = 2013 301 301 self.student['studycourse'].certificate.school_fee_1 = 50250.0 302 self.app['configuration']['2004'].union_fee = 1 015.23303 self.app['configuration']['2004'].welfare_fee = 507.61302 self.app['configuration']['2004'].union_fee = 1250.0 303 self.app['configuration']['2004'].welfare_fee = 750.0 304 304 self.student.nationality = u'NG' 305 305 # Login
Note: See TracChangeset for help on using the changeset viewer.