- Timestamp:
- 12 Jan 2021, 08:42:06 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interswitch/browser.py
r16356 r16367 469 469 </payment_item_detail>""" % xmldict 470 470 471 if self.context.p_category == 'sas_1': 472 self.pay_item_id = '158' 473 # amount_auth is being ignored. However, the sum of all split payments 474 # must coincide with the amount_auth configured in students/utils.py 475 xmldict['amt1'] = 100 * 500 476 xmldict['amt2'] = 100 * 500 477 xmldict['amt3'] = 100 * 500 478 xmltext = """<payment_item_detail> 479 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 480 <item_detail item_id="1" item_name="SAS Dues" item_amt="%(amt1)d" bank_id="11" acct_num="0038956822" /> 481 <item_detail item_id="2" item_name="Handbook Fee" item_amt="%(amt2)d" bank_id="11" acct_num="0010772626" /> 482 <item_detail item_id="3" item_name="Association Due" item_amt="%(amt3)d" bank_id="8" acct_num="3069091989" /> 483 </item_details> 484 </payment_item_detail>""" % xmldict 485 486 if self.context.p_category == 'sas_2': 487 self.pay_item_id = '159' 488 # amount_auth is being ignored. However, the sum of all split payments 489 # must coincide with the amount_auth configured in students/utils.py 490 xmldict['amt1'] = 100 * 500 491 xmldict['amt2'] = 100 * 500 492 xmltext = """<payment_item_detail> 493 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 494 <item_detail item_id="1" item_name="SAS Dues" item_amt="%(amt1)d" bank_id="11" acct_num="0038956822" /> 495 <item_detail item_id="2" item_name="Association Due" item_amt="%(amt2)d" bank_id="8" acct_num="3069091989" /> 496 </item_details> 497 </payment_item_detail>""" % xmldict 498 499 if self.context.p_category == 'com': 500 self.pay_item_id = '160' 501 # amount_auth is being ignored. However, the sum of all split payments 502 # must coincide with the amount_auth configured in students/utils.py 503 xmldict['amt1'] = 100 * 500 504 xmldict['amt2'] = 100 * 500 505 xmltext = """<payment_item_detail> 506 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 507 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="11" acct_num="0010787594" /> 508 <item_detail item_id="2" item_name="NACOS " item_amt="%(amt2)d" bank_id="8" acct_num="3047146881" /> 509 </item_details> 510 </payment_item_detail>""" % xmldict 511 512 if self.context.p_category == 'sta': 513 self.pay_item_id = '161' 514 # amount_auth is being ignored. However, the sum of all split payments 515 # must coincide with the amount_auth configured in students/utils.py 516 xmldict['amt1'] = 100 * 500 517 xmldict['amt2'] = 100 * 500 518 xmltext = """<payment_item_detail> 519 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 520 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="11" acct_num="0048794281" /> 521 <item_detail item_id="2" item_name="NASS " item_amt="%(amt2)d" bank_id="8" acct_num="203000173" /> 522 </item_details> 523 </payment_item_detail>""" % xmldict 524 525 if self.context.p_category == 'slt_1': 526 self.pay_item_id = '162' 527 # amount_auth is being ignored. However, the sum of all split payments 528 # must coincide with the amount_auth configured in students/utils.py 529 xmldict['amt1'] = 100 * 500 530 xmldict['amt2'] = 100 * 500 531 xmldict['amt3'] = 100 * 3000 532 xmldict['amt4'] = 100 * 500 533 xmldict['amt5'] = 100 * 3000 534 xmldict['amt6'] = 100 * 2000 535 xmltext = """<payment_item_detail> 536 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 537 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="8" acct_num="2033492885" /> 538 <item_detail item_id="2" item_name="Association Due" item_amt="%(amt2)d" bank_id="11" acct_num="0115800071" /> 539 <item_detail item_id="3" item_name="Professional Due" item_amt="%(amt3)d" bank_id="8" acct_num="2033492885" /> 540 <item_detail item_id="4" item_name="Prospectus" item_amt="%(amt4)d" bank_id="8" acct_num="2033492885" /> 541 <item_detail item_id="5" item_name="Practical Manual" item_amt="%(amt4)d" bank_id="8" acct_num="2033492885" /> 542 <item_detail item_id="6" item_name="Lab. Coat" item_amt="%(amt4)d" bank_id="8" acct_num="2033492885" /> 543 </item_details> 544 </payment_item_detail>""" % xmldict 545 546 if self.context.p_category == 'slt_2': 547 self.pay_item_id = '163' 548 # amount_auth is being ignored. However, the sum of all split payments 549 # must coincide with the amount_auth configured in students/utils.py 550 xmldict['amt1'] = 100 * 500 551 xmldict['amt2'] = 100 * 500 552 xmldict['amt3'] = 100 * 3000 553 xmltext = """<payment_item_detail> 554 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 555 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="8" acct_num="2033492885" /> 556 <item_detail item_id="2" item_name="Association Due" item_amt="%(amt2)d" bank_id="11" acct_num="0115800071" /> 557 <item_detail item_id="3" item_name="Practical Manual" item_amt="%(amt3)d" bank_id="8" acct_num="2033492885" /> 558 </item_details> 559 </payment_item_detail>""" % xmldict 560 561 if self.context.p_category == 'lis': 562 self.pay_item_id = '164' 563 # amount_auth is being ignored. However, the sum of all split payments 564 # must coincide with the amount_auth configured in students/utils.py 565 xmldict['amt1'] = 100 * 500 566 xmldict['amt2'] = 100 * 500 567 xmltext = """<payment_item_detail> 568 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 569 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="" acct_num="0068264131" /> 570 <item_detail item_id="2" item_name="Association Due" item_amt="%(amt2)d" bank_id="" acct_num="" /> 571 </item_details> 572 </payment_item_detail>""" % xmldict 573 574 if self.context.p_category == 'htm': 575 self.pay_item_id = '165' 576 # amount_auth is being ignored. However, the sum of all split payments 577 # must coincide with the amount_auth configured in students/utils.py 578 xmldict['amt1'] = 100 * 500 579 xmldict['amt2'] = 100 * 500 580 xmltext = """<payment_item_detail> 581 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> 582 <item_detail item_id="1" item_name="Departmental Due" item_amt="%(amt1)d" bank_id="" acct_num="0068264131" /> 583 <item_detail item_id="2" item_name="Association Due" item_amt="%(amt2)d" bank_id="" acct_num="" /> 584 </item_details> 585 </payment_item_detail>""" % xmldict 586 587 471 588 self.xml_data = """<input type="hidden" name="xml_data" value='%s' />""" % xmltext 472 589 self.context.provider_amt = provider_amt
Note: See TracChangeset for help on using the changeset viewer.