Changeset 16942


Ignore:
Timestamp:
2 May 2022, 06:50:56 (3 years ago)
Author:
Henrik Bettermann
Message:

Take LMS and Sundry fees into consideration.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/interswitch/browser.py

    r16941 r16942  
     1# -*- coding: utf-8 -*-
    12## $Id$
    23##
     
    294295        xmldict['institution_name'] = INSTITUTION_NAME
    295296        provider_amt = 0.0
     297        xmldict['institution_amt'] = 100 * (
     298            gateway_net_amt(self.context.amount_auth))
    296299
    297300        # Schoolfee
     
    342345                library_amt_pg = gateway_net_amt(
    343346                    academic_session.library_pg_fee)
     347                lms_sund_amt = gateway_net_amt(
     348                    academic_session.lms_sund_fee)
    344349                xmldict['student_union_bank_id'] = '7'
    345350                xmldict['student_union_acct'] = '1019763348'
     
    388393                        - student_welfare_assurance_amt
    389394                        - sports_amt
    390                         - library_amt)
     395                        - library_amt
     396                        - lms_sund_amt)
    391397                    xmltext = """<payment_item_detail>
    392398<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    400406                        xmltext += """"
    401407<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':
    406410                        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 += """"
    407413</item_details>
    408414</payment_item_detail>"""
     
    672678                gateway_net_amt(self.context.amount_auth))
    673679
     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
    674686        # Sports & Library Fee    temporarily in 2020
    675687        elif self.context.p_category == 'sports_library':
     
    709721        itemlist = xmldoc.getElementsByTagName('item_detail')
    710722        for s in itemlist:
    711             xmlitems += "%s: %s, N%s, %s (%s)  " % (
     723            xmlitems += "%s: %s, %s%s, %s (%s)  " % (
    712724                s.attributes['item_id'].value,
    713725                s.attributes['item_name'].value,
     726                u'\u20a6',
    714727                int(s.attributes['item_amt'].value)/100,
    715728                s.attributes['acct_num'].value,
Note: See TracChangeset for help on using the changeset viewer.