Ignore:
Timestamp:
8 Nov 2018, 17:53:37 (6 years ago)
Author:
Henrik Bettermann
Message:

Configure hostel_maintenance bank account.

File:
1 edited

Legend:

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

    r15214 r15219  
    182182            xmldict['institution_acct'] = '2015327204'
    183183            xmldict['institution_bank_id'] = '8'
     184        elif self.context.p_category == 'hostel_maintenance':
     185            provider_amt = 500.0
     186            self.pay_item_id = '117'
     187            xmldict['institution_acct'] = '2011810353'
     188            xmldict['institution_bank_id'] = '8'
     189            xmldict['provider_amt'] = 100 * provider_amt
     190            xmldict['institution_amt'] = 100 * (
     191                gateway_net_amt(self.context.amount_auth) - provider_amt)
    184192        elif self.context.p_category in SPECIAL_PAYMENT_PARAMS.keys():
    185193            self.pay_item_id = SPECIAL_PAYMENT_PARAMS[self.context.p_category][0]
     
    265273</item_details>
    266274</payment_item_detail>""" % xmldict
    267 
    268 #            if student.faccode == 'SPAT':
    269 #                xmltext = """<payment_item_detail>
    270 #<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    271 #<item_detail item_id="1" item_name="Students Welfare" item_amt="%(amt2)d" bank_id="11" acct_num="0037892949" />
    272 #<item_detail item_id="2" item_name="Anti-Cult Book" item_amt="%(amt3)d" bank_id="11" acct_num="0037892949" />
    273 #</item_details>
    274 #</payment_item_detail>""" % xmldict
    275275
    276276        self.xml_data = """<input type="hidden" name="xml_data" value='%s'  />""" % xmltext
Note: See TracChangeset for help on using the changeset viewer.