Changeset 15328


Ignore:
Timestamp:
13 Feb 2019, 11:42:44 (6 years ago)
Author:
Henrik Bettermann
Message:

Split Tech Fee

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/browser.py

    r15322 r15328  
    7676        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    7777        provider_amt = 0.0
     78        share_amt = 0.0
    7879        # Institution data
    7980        xmldict['institution_acct'] = '1019684470'
     
    8889            if self.context.p_category in ('schoolfee_1', 'schoolfee_2') \
    8990                and not self.context.p_item == 'Balance':
    90                 provider_amt = 2000.0
     91                provider_amt = 1400.0
     92                share_amt = 600.0
    9193            if self.context.p_category == 'schoolfee' \
    9294                and not self.context.p_item == 'Balance':
    93                 provider_amt = 4000.0
     95                provider_amt = 2800.0
     96                share_amt = 1200.0
    9497        xmldict['provider_amt'] = 100 * provider_amt
     98        xmldict['share_amt'] = 100 * share_amt
    9599        xmldict['institution_amt'] = 100 * (
    96100            self.context.amount_auth - provider_amt - GATEWAY_AMT)
     
    103107</item_details>
    104108</payment_item_detail>""" % xmldict
     109        elif share_amt == 0:
     110            xmltext = """<payment_item_detail>
     111<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     112<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" />
     113<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" />
     114</item_details>
     115</payment_item_detail>""" % xmldict
    105116        else:
    106117            xmltext = """<payment_item_detail>
     
    108119<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" />
    109120<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" />
     121<item_detail item_id="3" item_name="Tech Fee Share" item_amt="%(share_amt)d" bank_id="307" acct_num="5100189030" />
    110122</item_details>
    111123</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.