Changeset 10142 for main/waeup.kwarapoly
- Timestamp:
- 2 May 2013, 14:54:27 (12 years ago)
- 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 221 221 self.context.creation_date, tz).strftime("%Y-%m-%d %H:%M:%S %Z") 222 222 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 225 224 if self.applicant.applicant_id.startswith('hnd'): 226 225 xmldict['institution_acct'] = '7000016463' … … 232 231 xmldict['institution_acct'] = '00000000000' 233 232 xmldict['institution_bank_id'] = '00' 234 xmldict['dalash_amt'] = 100 * dalash_amt235 233 xmldict['detail_ref'] = self.context.p_id 236 234 xmldict['provider_amt'] = 100 * provider_amt … … 239 237 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 240 238 xmldict['institution_amt'] = 100 * ( 241 self.context.amount_auth - provider_amt - GATEWAY_AMT - dalash_amt)239 self.context.amount_auth - provider_amt - GATEWAY_AMT) 242 240 xmldict['institution_item_name'] = self.context.p_category 243 241 xmldict['institution_name'] = INSTITUTION_NAME … … 256 254 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 257 255 <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" /> 260 257 </item_details> 261 258 </payment_item_detail>""" % xmldict … … 263 260 self.context.provider_amt = provider_amt 264 261 self.context.gateway_amt = GATEWAY_AMT 265 self.context.thirdparty_amt = dalash_amt266 262 return 267 263 -
main/waeup.kwarapoly/trunk/src/waeup/kwarapoly/interswitch/tests.py
r10133 r10142 357 357 'item_amt="253300" bank_id="9" acct_num="7000016463" />' 358 358 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.