Changeset 14833
- Timestamp:
- 1 Sep 2017, 07:40:55 (7 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r14823 r14833 132 132 133 133 elif self.applicant.applicant_id.startswith('utme'): 134 provider_amt = 1000.0 135 screening_guide_amount = 2000.0 134 provider_amt = 2000.0 136 135 xmldict['provider_amt'] = 100 * provider_amt 137 xmldict['screening_guide_amount'] = 100 * screening_guide_amount 138 xmldict['institution_amt'] = 100 * ( 139 self.context.amount_auth - provider_amt - screening_guide_amount -GATEWAY_AMT) 136 xmldict['institution_amt'] = 100 * ( 137 self.context.amount_auth - provider_amt - GATEWAY_AMT) 140 138 xmltext = """<payment_item_detail> 141 139 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 142 140 <item_detail item_id="1" item_name="%(institution_item_name)s" item_amt="%(institution_amt)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 143 141 <item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" /> 144 <item_detail item_id="3" item_name="Screening Guide" item_amt="%(screening_guide_amount)d" bank_id="117" acct_num="1013879579" />145 142 </item_details> 146 143 </payment_item_detail>""" % xmldict -
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/tests.py
r14823 r14833 143 143 in self.browser.contents) 144 144 self.assertTrue( 145 'item_name="WAeAC" item_amt=" 100000"'146 in self.browser.contents) 147 self.assertTrue( 148 'item_name="Application Fee" item_amt=" 675000" bank_id="117" acct_num="1010835352"'149 in self.browser.contents) 150 self.assert True(145 'item_name="WAeAC" item_amt="200000"' 146 in self.browser.contents) 147 self.assertTrue( 148 'item_name="Application Fee" item_amt="775000" bank_id="117" acct_num="1010835352"' 149 in self.browser.contents) 150 self.assertFalse( 151 151 'item_name="Screening Guide" item_amt="200000" bank_id="117" acct_num="1013879579"' 152 152 in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.