Ignore:
Timestamp:
13 Aug 2018, 05:55:02 (6 years ago)
Author:
Henrik Bettermann
Message:

Maryanne: make the student union dues a fee on its own

File:
1 edited

Legend:

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

    r15101 r15105  
    8080            if self.context.p_category == 'clearance':
    8181                provider_amt = 1500.0
    82 
    8382            # temporarily disabled
    8483            #if self.context.p_category in ('transcript', 'certificate'):
    8584            #    provider_amt = 2000.0
    86 
    8785        # Institution data
    8886        xmldict['institution_acct'] = '0068241848'
    8987        xmldict['institution_bank_id'] = '121'
     88        if self.context.p_category == 'union':
     89            xmldict['institution_acct'] = '0066437412'
    9090        xmldict['institution_amt'] = '0.0'
    9191        self.pay_item_id = '101' # must be provided by Interswitch
     
    9696            self.context.amount_auth - provider_amt - GATEWAY_AMT)
    9797        # Interswitch amount is not part of the xml data
    98         if not self.context.p_item == 'Balance' \
    99             and self.context.p_category == 'schoolfee':
    100             xmldict['institution_amt'] -= 200000
    101             xmltext = """<payment_item_detail>
    102 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
    103 <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" />
    104 <item_detail item_id="2" item_name="Student Union Dues" item_amt="200000" bank_id="121" acct_num="0066437412" />
    105 </item_details>
    106 </payment_item_detail>""" % xmldict
    107         elif provider_amt == 0:
     98        if provider_amt == 0:
    10899            xmltext = """<payment_item_detail>
    109100<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
Note: See TracChangeset for help on using the changeset viewer.