Changeset 13383


Ignore:
Timestamp:
3 Nov 2015, 17:04:50 (9 years ago)
Author:
Henrik Bettermann
Message:

Add two payment items.

File:
1 edited

Legend:

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

    r13382 r13383  
    335335</payment_item_detail>""" % xmldict
    336336
     337            elif self.context.p_category == 'medical':
     338                self.pay_item_id = '108'
     339                xmldict['institution_acct'] = '1010827641'
     340                xmldict['institution_bank_id'] = '117'
     341                xmldict['institution_amt'] = 100 * (
     342                    self.context.amount_auth - GATEWAY_AMT)
     343                xmltext = """<payment_item_detail>
     344<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     345<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" />
     346</item_details>
     347</payment_item_detail>""" % xmldict
     348
     349            elif self.context.p_category == 'hostel_maintenance':
     350                self.pay_item_id = '109'
     351                xmldict['institution_acct'] = '1006406795'
     352                xmldict['institution_bank_id'] = '123'
     353                xmldict['institution_amt'] = 100 * (
     354                    self.context.amount_auth - GATEWAY_AMT)
     355                xmltext = """<payment_item_detail>
     356<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     357<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" />
     358</item_details>
     359</payment_item_detail>""" % xmldict
     360
    337361        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
    338362        self.context.provider_amt = provider_amt
Note: See TracChangeset for help on using the changeset viewer.