Changeset 14223 for main


Ignore:
Timestamp:
24 Oct 2016, 06:41:31 (8 years ago)
Author:
Henrik Bettermann
Message:

Deduct BT Services technology fee to accommodation fee.

File:
1 edited

Legend:

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

    r14122 r14223  
    437437        # Hostel Maintenance
    438438        elif self.context.p_category == 'hostel_maintenance':
     439            provider_amt = 500.0
    439440            self.pay_item_id = '109'
     441            xmldict['provider_amt'] = 100 * provider_amt
    440442            xmldict['institution_acct'] = '1006406795'
    441443            xmldict['institution_bank_id'] = '123'
    442444            xmldict['institution_amt'] = 100 * (
    443                 gateway_net_amt(self.context.amount_auth))
    444             xmltext = """<payment_item_detail>
    445 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    446 <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" />
     445                gateway_net_amt(self.context.amount_auth) - provider_amt)
     446            xmltext = """<payment_item_detail>
     447<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     448<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" />
     449<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" />
    447450</item_details>
    448451</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.