Changeset 15321


Ignore:
Timestamp:
4 Feb 2019, 19:21:17 (6 years ago)
Author:
Henrik Bettermann
Message:

Adjust provider_amt and change bank account.

Location:
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch
Files:
2 edited

Legend:

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

    r15211 r15321  
    7777        provider_amt = 0.0
    7878        # Institution data
    79         xmldict['institution_acct'] = '1019684470'
     79        xmldict['institution_acct'] = '1020855036'
    8080        xmldict['institution_bank_id'] = '7'
    8181        xmldict['institution_item_name'] = self.context.category
     
    8686        elif self.context.p_category.startswith('schoolfee'):
    8787            self.pay_item_id = '103'
    88             if self.context.p_category in ('schoolfee', 'schoolfee_1') \
     88            if self.context.p_category in ('schoolfee_1', 'schoolfee_2') \
     89                and not self.context.p_item == 'Balance':
     90                provider_amt = 2000.0
     91            if self.context.p_category == 'schoolfee' \
    8992                and not self.context.p_item == 'Balance':
    9093                provider_amt = 4000.0
     
    141144        xmldict = {}
    142145        provider_amt = 500.0
    143         xmldict['institution_acct'] = '1019684470'
     146        xmldict['institution_acct'] = '1020855036'
    144147        xmldict['institution_bank_id'] = '7'
    145148        xmldict['detail_ref'] = self.context.p_id
  • main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/tests.py

    r14658 r15321  
    8181            self.browser.contents)
    8282        self.assertMatches(
    83             '...item_name="School Fee (total)" item_amt="7945000" bank_id="7" acct_num="1019684470"...',
     83            '...item_name="School Fee (total)" item_amt="7945000" bank_id="7" acct_num="1020855036"...',
    8484            self.browser.contents)
    8585
Note: See TracChangeset for help on using the changeset viewer.