Ignore:
Timestamp:
8 Nov 2019, 12:24:57 (5 years ago)
Author:
Henrik Bettermann
Message:

Configure split data.

File:
1 edited

Legend:

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

    r15783 r15784  
    181181            self.context.provider_amt = provider_amt
    182182            self.context.amount_auth += provider_amt
    183         xmltext = """<payment_item_detail>
    184 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
     183        if provider_amt == 0:
     184            xmltext = """<payment_item_detail>
     185<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     186<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" />
     187</item_details>
     188</payment_item_detail>""" % xmldict
     189        else:
     190            xmltext = """<payment_item_detail>
     191<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    185192<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" />
    186193<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" />
Note: See TracChangeset for help on using the changeset viewer.