- Timestamp:
- 29 Aug 2019, 08:17:43 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r15474 r15571 98 98 'nysc_id_card': ('144', 9.0, '1012808851', '117'), 99 99 'ijmb_result': ('147', 500.0, '1012808851', '117'), 100 'conv': ('151', 500.0, '1012963301', '117'), 100 101 } 101 102 … … 426 427 </payment_item_detail>""" % xmldict 427 428 429 if self.context.p_category == 'hndgrad': 430 self.pay_item_id = '153' 431 # amount_auth is being ignored. However, the sum of all split payments 432 # must coincide with the amount_auth configured in students/utils.py 433 xmldict['amt1'] = 100 * 3000 434 xmldict['amt2'] = 100 * 5000 435 xmldict['amt3'] = 100 * 1000 436 xmldict['amt4'] = 100 * 3500 437 xmltext = """<payment_item_detail> 438 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 439 <item_detail item_id="1" item_name="Collection of Results" item_amt="%(amt1)d" bank_id="117" acct_num="1012808851" /> 440 <item_detail item_id="2" item_name="Collection of Certificate" item_amt="%(amt2)d" bank_id="117" acct_num="1012808851" /> 441 <item_detail item_id="3" item_name="Alumni" item_amt="%(amt3)d" bank_id="8" acct_num="2011810346" /> 442 <item_detail item_id="4" item_name="Convocation" item_amt="%(amt3)d" bank_id="8" acct_num="2006612782" /> 443 </item_details> 444 </payment_item_detail>""" % xmldict 445 446 if self.context.p_category == 'ndgrad': 447 self.pay_item_id = '152' 448 # amount_auth is being ignored. However, the sum of all split payments 449 # must coincide with the amount_auth configured in students/utils.py 450 xmldict['amt1'] = 100 * 3000 451 xmldict['amt2'] = 100 * 7500 452 xmldict['amt3'] = 100 * 1000 453 xmldict['amt4'] = 100 * 3500 454 xmltext = """<payment_item_detail> 455 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 456 <item_detail item_id="1" item_name="Collection of Results" item_amt="%(amt1)d" bank_id="117" acct_num="1012808851" /> 457 <item_detail item_id="2" item_name="Collection of Certificate" item_amt="%(amt2)d" bank_id="117" acct_num="1012808851" /> 458 <item_detail item_id="3" item_name="Alumni" item_amt="%(amt3)d" bank_id="8" acct_num="2011810346" /> 459 <item_detail item_id="4" item_name="Convocation" item_amt="%(amt3)d" bank_id="8" acct_num="2006612782" /> 460 </item_details> 461 </payment_item_detail>""" % xmldict 428 462 429 463 self.xml_data = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext
Note: See TracChangeset for help on using the changeset viewer.