Changeset 16942
- Timestamp:
- 2 May 2022, 06:50:56 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py
r16941 r16942 1 # -*- coding: utf-8 -*- 1 2 ## $Id$ 2 3 ## … … 294 295 xmldict['institution_name'] = INSTITUTION_NAME 295 296 provider_amt = 0.0 297 xmldict['institution_amt'] = 100 * ( 298 gateway_net_amt(self.context.amount_auth)) 296 299 297 300 # Schoolfee … … 342 345 library_amt_pg = gateway_net_amt( 343 346 academic_session.library_pg_fee) 347 lms_sund_amt = gateway_net_amt( 348 academic_session.lms_sund_fee) 344 349 xmldict['student_union_bank_id'] = '7' 345 350 xmldict['student_union_acct'] = '1019763348' … … 388 393 - student_welfare_assurance_amt 389 394 - sports_amt 390 - library_amt) 395 - library_amt 396 - lms_sund_amt) 391 397 xmltext = """<payment_item_detail> 392 398 <item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s"> … … 400 406 xmltext += """" 401 407 <item_detail item_id="7" item_name="Joint Venture" item_amt="%(joint_venture_amt)d" bank_id="%(joint_venture_bank_id)s" acct_num="%(joint_venture_acct)s" /> 402 <item_detail item_id="8" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" /> 403 </item_details> 404 </payment_item_detail>""" % xmldict 405 else: 408 <item_detail item_id="8" item_name="AAUE Share" item_amt="%(aaue_share_amt)d" bank_id="%(aaue_share_bank_id)s" acct_num="%(aaue_share_acct)s" />""" % xmldict 409 if student.entry_session >= 2021 and student.current_mode == 'ug_ft': 406 410 xmltext += """" 411 <item_detail item_id="9" item_name="LMS + Sundry Fees" item_amt="%(lms_sund_amt)d" bank_id=""%(institution_bank_id)s" acct_num="%(institution_acct)s" />""" % xmldict 412 xmltext += """" 407 413 </item_details> 408 414 </payment_item_detail>""" … … 672 678 gateway_net_amt(self.context.amount_auth)) 673 679 680 # LMS + Sundry Fees 681 elif self.context.p_category == 'lms_sund': 682 self.pay_item_id = '103' 683 xmldict['institution_amt'] = 100 * ( 684 gateway_net_amt(self.context.amount_auth)) 685 674 686 # Sports & Library Fee temporarily in 2020 675 687 elif self.context.p_category == 'sports_library': … … 709 721 itemlist = xmldoc.getElementsByTagName('item_detail') 710 722 for s in itemlist: 711 xmlitems += "%s: %s, N%s, %s (%s) " % (723 xmlitems += "%s: %s, %s%s, %s (%s) " % ( 712 724 s.attributes['item_id'].value, 713 725 s.attributes['item_name'].value, 726 u'\u20a6', 714 727 int(s.attributes['item_amt'].value)/100, 715 728 s.attributes['acct_num'].value,
Note: See TracChangeset for help on using the changeset viewer.