Changeset 14964 for main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Timestamp:
- 8 Mar 2018, 20:42:40 (7 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r14962 r14964 203 203 </item_details> 204 204 </payment_item_detail>""" % xmldict 205 el se:205 elif tech_fee == 0: 206 206 xmltext = """<payment_item_detail> 207 207 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> … … 211 211 </item_details> 212 212 </payment_item_detail>""" % xmldict 213 213 else: 214 xmltext = """<payment_item_detail> 215 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 216 <item_detail item_id="1" item_name="%(institution_item_name)s 1" item_amt="%(institution_amt_1)d" bank_id="%(institution_bank_id)s" acct_num="%(institution_acct)s" /> 217 <item_detail item_id="2" item_name="%(institution_item_name)s 2" item_amt="%(institution_amt_2)d" bank_id="123" acct_num="1002883141" /> 218 <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" /> 219 <item_detail item_id="4" item_name="Technology Fee" item_amt="%(tech_fee)d" bank_id="307" acct_num="5100189030" /> 220 </item_details> 221 </payment_item_detail>""" % xmldict 214 222 # dep_sug payments are treated completely separately. The following lines 215 223 # override the configuration above. -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py
r14961 r14964 205 205 self.assertTrue('<item_detail item_id="3" item_name="BT Education" item_amt="280000" bank_id="8" acct_num="2028964403" />' 206 206 in self.browser.contents) 207 self.assertTrue('<item_detail item_id="4" item_name="Technology Fee" item_amt="120000" bank_id="307" acct_num="5100189030" />' 208 in self.browser.contents) 207 209 208 210 def test_interswitch_form_dep_sug_payments(self):
Note: See TracChangeset for help on using the changeset viewer.