Changeset 15328 for main/kofacustom.coewarri/trunk/src
- Timestamp:
- 13 Feb 2019, 11:42:44 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.coewarri/trunk/src/kofacustom/coewarri/interswitch/browser.py
r15322 r15328 76 76 xmldict['provider_item_name'] = PROVIDER_ITEM_NAME 77 77 provider_amt = 0.0 78 share_amt = 0.0 78 79 # Institution data 79 80 xmldict['institution_acct'] = '1019684470' … … 88 89 if self.context.p_category in ('schoolfee_1', 'schoolfee_2') \ 89 90 and not self.context.p_item == 'Balance': 90 provider_amt = 2000.0 91 provider_amt = 1400.0 92 share_amt = 600.0 91 93 if self.context.p_category == 'schoolfee' \ 92 94 and not self.context.p_item == 'Balance': 93 provider_amt = 4000.0 95 provider_amt = 2800.0 96 share_amt = 1200.0 94 97 xmldict['provider_amt'] = 100 * provider_amt 98 xmldict['share_amt'] = 100 * share_amt 95 99 xmldict['institution_amt'] = 100 * ( 96 100 self.context.amount_auth - provider_amt - GATEWAY_AMT) … … 103 107 </item_details> 104 108 </payment_item_detail>""" % xmldict 109 elif share_amt == 0: 110 xmltext = """<payment_item_detail> 111 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 112 <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" /> 113 <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" /> 114 </item_details> 115 </payment_item_detail>""" % xmldict 105 116 else: 106 117 xmltext = """<payment_item_detail> … … 108 119 <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" /> 109 120 <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" /> 121 <item_detail item_id="3" item_name="Tech Fee Share" item_amt="%(share_amt)d" bank_id="307" acct_num="5100189030" /> 110 122 </item_details> 111 123 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.