Ignore:
Timestamp:
8 Mar 2018, 20:42:40 (7 years ago)
Author:
Henrik Bettermann
Message:

Add tech fee xml data to SPAT school fee payments.

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  
    203203</item_details>
    204204</payment_item_detail>""" % xmldict
    205             else:
     205            elif tech_fee == 0:
    206206                xmltext = """<payment_item_detail>
    207207<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    211211</item_details>
    212212</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
    214222        # dep_sug payments are treated completely separately. The following lines
    215223        # override the configuration above.
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/tests.py

    r14961 r14964  
    205205        self.assertTrue('<item_detail item_id="3" item_name="BT Education" item_amt="280000" bank_id="8" acct_num="2028964403" />'
    206206            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)
    207209
    208210    def test_interswitch_form_dep_sug_payments(self):
Note: See TracChangeset for help on using the changeset viewer.