Changeset 15746 for main/waeup.aaue/trunk
- Timestamp:
- 3 Nov 2019, 09:33:34 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r15742 r15746 107 107 return 108 108 provider_amt = 2000.0 109 fedex_amt = 0.0 109 110 if contr_agreement_applicant(self.context.__parent__) == 'first': 110 111 self.product_id = PRODUCT_ID_PT … … 127 128 self.institution_acct = '5210006575' 128 129 self.institution_bank_id = '51' 130 if self.applicant.applicant_id[:6] in ('trans1', 'trans6'): 131 fedex_amt = 10500.0 129 132 if self.context.p_category == 'app_balance': 130 133 provider_amt = 0.0 … … 147 150 xmldict['institution_item_name'] = self.category 148 151 xmldict['institution_name'] = INSTITUTION_NAME 152 xmldict['fedex_amt'] = 100 * fedex_amt 149 153 xmldict['institution_amt'] = 100 * ( 150 self.context.amount_auth - provider_amt - GATEWAY_AMT)154 self.context.amount_auth - provider_amt - fedex_amt - GATEWAY_AMT) 151 155 152 156 xmltext = """<payment_item_detail> … … 161 165 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 162 166 <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" /> 167 </item_details> 168 </payment_item_detail>""" % xmldict 169 170 if fedex_amt: 171 172 173 174 xmltext = """<payment_item_detail> 175 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 176 <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" /> 177 <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" /> 178 <item_detail item_id="3" item_name="FedEx" item_amt="%(fedex_amt)d" bank_id="117" acct_num="1010041670" /> 163 179 </item_details> 164 180 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.