Ignore:
Timestamp:
21 Mar 2017, 13:37:01 (8 years ago)
Author:
Henrik Bettermann
Message:

Do not deduct provider_amt for balance payments.

File:
1 edited

Legend:

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

    r14344 r14640  
    7575        xmldict['provider_bank_id'] = PROVIDER_BANK_ID
    7676        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    77         provider_amt = 500.0
     77        provider_amt = 0.0
    7878        # Institution data
    7979        xmldict['institution_acct'] = '1019684470'
     
    8383        if self.context.p_category == 'clearance':
    8484            self.pay_item_id = '102'
     85            provider_amt = 500.0
    8586        elif self.context.p_category.startswith('schoolfee'):
    8687            self.pay_item_id = '103'
    87             if self.context.p_category in ('schoolfee', 'schoolfee_1'):
     88            if self.context.p_category in ('schoolfee', 'schoolfee_1') \
     89                and not self.context.p_item == 'Balance':
    8890                provider_amt = 4000.0
    8991        xmldict['provider_amt'] = 100 * provider_amt
Note: See TracChangeset for help on using the changeset viewer.