Ignore:
Timestamp:
2 May 2013, 14:54:27 (12 years ago)
Author:
Henrik Bettermann
Message:

Remove dalash item_detail.

Location:
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch
Files:
2 edited

Legend:

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

    r10132 r10142  
    221221            self.context.creation_date, tz).strftime("%Y-%m-%d %H:%M:%S %Z")
    222222        self.site_redirect_url = self.url(self.context, 'request_webservice')
    223         provider_amt = 250.0
    224         dalash_amt = 250.0
     223        provider_amt = 500.0
    225224        if self.applicant.applicant_id.startswith('hnd'):
    226225            xmldict['institution_acct'] = '7000016463'
     
    232231            xmldict['institution_acct'] = '00000000000'
    233232            xmldict['institution_bank_id'] = '00'
    234         xmldict['dalash_amt'] = 100 * dalash_amt
    235233        xmldict['detail_ref'] = self.context.p_id
    236234        xmldict['provider_amt'] = 100 * provider_amt
     
    239237        xmldict['provider_item_name'] = PROVIDER_ITEM_NAME
    240238        xmldict['institution_amt'] = 100 * (
    241             self.context.amount_auth - provider_amt - GATEWAY_AMT - dalash_amt)
     239            self.context.amount_auth - provider_amt - GATEWAY_AMT)
    242240        xmldict['institution_item_name'] = self.context.p_category
    243241        xmldict['institution_name'] = INSTITUTION_NAME
     
    256254<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s">
    257255<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" />
    258 <item_detail item_id="2" item_name="Dalash" item_amt="%(dalash_amt)d" bank_id="117" acct_num="1013196791" />
    259 <item_detail item_id="3" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
     256<item_detail item_id="2" item_name="%(provider_item_name)s" item_amt="%(provider_amt)d" bank_id="%(provider_bank_id)s" acct_num="%(provider_acct)s" />
    260257</item_details>
    261258</payment_item_detail>""" % xmldict
     
    263260        self.context.provider_amt = provider_amt
    264261        self.context.gateway_amt = GATEWAY_AMT
    265         self.context.thirdparty_amt = dalash_amt
    266262        return
    267263
  • main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py

    r10133 r10142  
    357357            'item_amt="253300" bank_id="9" acct_num="7000016463" />'
    358358            in self.browser.contents)
    359 
     359        self.assertTrue(
     360            '<item_detail item_id="2" item_name="BT Education" '
     361            'item_amt="50000" bank_id="117" acct_num="1010764827" />
     362            in self.browser.contents)
Note: See TracChangeset for help on using the changeset viewer.