Changeset 16367
- Timestamp:
- 12 Jan 2021, 08:42:06 (4 years ago)
- Location:
- main/kofacustom.dspg/trunk/src/kofacustom/dspg
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.dspg/trunk/src/kofacustom/dspg/interfaces.py
r16323 r16367 502 502 ) 503 503 504 sas_1_fee = schema.Float( 505 title = _(u'SAS Pack I'), 506 default = 0.0, 507 required = True, 508 ) 509 510 sas_2_fee = schema.Float( 511 title = _(u'SAS Pack II'), 512 default = 0.0, 513 required = True, 514 ) 515 516 com_fee = schema.Float( 517 title = _(u'COM Pack'), 518 default = 0.0, 519 required = True, 520 ) 521 522 sta_fee = schema.Float( 523 title = _(u'STA Pack'), 524 default = 0.0, 525 required = True, 526 ) 527 528 slt_1_fee = schema.Float( 529 title = _(u'SLT Pack 1'), 530 default = 0.0, 531 required = True, 532 ) 533 534 slt_2_fee = schema.Float( 535 title = _(u'SLT Pack 2'), 536 default = 0.0, 537 required = True, 538 ) 539 540 lis_fee = schema.Float( 541 title = _(u'LIS Pack'), 542 default = 0.0, 543 required = True, 544 ) 545 546 htm_fee = schema.Float( 547 title = _(u'HTM Pack'), 548 default = 0.0, 549 required = True, 550 ) 551 552 504 553 def getSessionString(): 505 554 """Returns the session string from the vocabulary. -
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 -
main/kofacustom.dspg/trunk/src/kofacustom/dspg/utils/utils.py
r16323 r16367 127 127 'pom':'POM Pack', 128 128 'hrm':'HRM Pack', 129 'sas_1':'SAS Pack I', 130 'sas_2':'SAS Pack II', 131 'com':'COM Pack', 132 'sta':'STA Pack', 133 'slt_1':'SLT Pack I', 134 'slt_2':'SLT Pack II', 135 'lis':'LIS Pack', 136 'htm':'HTM Pack', 129 137 'hndgrad':'HND Final Clearance Pack', 130 138 'ndgrad':'ND Final Clearance Pack', … … 199 207 'pom':'POM Pack', 200 208 'hrm':'HRM Pack', 209 'sas_1':'SAS Pack I', 210 'sas_2':'SAS Pack II', 211 'com':'COM Pack', 212 'sta':'STA Pack', 213 'slt_1':'SLT Pack I', 214 'slt_2':'SLT Pack II', 215 'lis':'LIS Pack', 216 'htm':'HTM Pack', 201 217 'hndgrad':'HND Final Clearance Pack', 202 218 'ndgrad':'ND Final Clearance Pack',
Note: See TracChangeset for help on using the changeset viewer.