Changeset 15746


Ignore:
Timestamp:
3 Nov 2019, 09:33:34 (5 years ago)
Author:
Henrik Bettermann
Message:

Consider FedEx? fee.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r15742 r15746  
    107107            return
    108108        provider_amt = 2000.0
     109        fedex_amt = 0.0
    109110        if contr_agreement_applicant(self.context.__parent__) == 'first':
    110111            self.product_id = PRODUCT_ID_PT
     
    127128                    self.institution_acct = '5210006575'
    128129                    self.institution_bank_id = '51'
     130                if self.applicant.applicant_id[:6] in ('trans1', 'trans6'):
     131                    fedex_amt = 10500.0
    129132                if self.context.p_category == 'app_balance':
    130133                    provider_amt = 0.0
     
    147150        xmldict['institution_item_name'] = self.category
    148151        xmldict['institution_name'] = INSTITUTION_NAME
     152        xmldict['fedex_amt'] = 100 * fedex_amt
    149153        xmldict['institution_amt'] = 100 * (
    150             self.context.amount_auth - provider_amt - GATEWAY_AMT)
     154            self.context.amount_auth - provider_amt - fedex_amt - GATEWAY_AMT)
    151155
    152156        xmltext = """<payment_item_detail>
     
    161165<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
    162166<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" />
    163179</item_details>
    164180</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.