Changeset 16640
- Timestamp:
- 24 Sep 2021, 14:58:56 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/interswitch/browser.py
r16639 r16640 159 159 self.context.r_company = u'interswitch' 160 160 xmldict = {} 161 provider_amt = 500.0 161 #rovider_amt = 500.0 162 provider_amt = 0.0 162 163 xmldict['institution_acct'] = '1489560452' 163 164 xmldict['institution_bank_id'] = '31' … … 175 176 self.context.provider_amt = provider_amt 176 177 self.context.amount_auth += provider_amt 177 xmltext = """<payment_item_detail> 178 if provider_amt: 179 xmltext = """<payment_item_detail> 178 180 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 179 181 <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" /> 180 <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" /> 181 <item_detail item_id="3" item_name="Nursing and Midwifery Committee" item_amt="%(midwife_amt)d" bank_id="8" acct_num="2004854377" /> 182 <item_detail item_id="2" item_name="Nursing and Midwifery Committee" item_amt="%(midwife_amt)d" bank_id="8" acct_num="2004854377" /> 183 <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" /> 184 </item_details> 185 </payment_item_detail>""" % xmldict 186 else: 187 xmltext = """<payment_item_detail> 188 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s"> 189 <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" /> 190 <item_detail item_id="2" item_name="Nursing and Midwifery Committee" item_amt="%(midwife_amt)d" bank_id="8" acct_num="2004854377" /> 182 191 </item_details> 183 192 </payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.