Ignore:
Timestamp:
2 Oct 2018, 12:39:06 (6 years ago)
Author:
Henrik Bettermann
Message:

See AAUE ticket #513.

File:
1 edited

Legend:

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

    r15168 r15180  
    240240                student_welfare_assurance_amt = gateway_net_amt(
    241241                    academic_session.welfare_fee)
     242                sports_amt = gateway_net_amt(
     243                    academic_session.sports_fee)
     244                library_amt = gateway_net_amt(
     245                    academic_session.library_fee)
    242246                xmldict['student_union_bank_id'] = '31'
    243247                xmldict['student_union_acct'] = '0051005007'
     
    259263                student_welfare_assurance_amt = gateway_net_amt(
    260264                    academic_session.welfare_fee)
     265                sports_amt = gateway_net_amt(
     266                    academic_session.sports_fee)
     267                library_amt = gateway_net_amt(
     268                    academic_session.library_fee)
    261269                xmldict['student_union_bank_id'] = '7'
    262270                xmldict['student_union_acct'] = '1019763348'
     
    284292                xmldict['student_union_due_amt'] = 100 * student_union_due_amt
    285293                xmldict['student_welfare_assurance_amt'] = 100 * student_welfare_assurance_amt
     294                xmldict['sports_amt'] = 100 * sports_amt
     295                xmldict['library_amt'] = 100 * library_amt
    286296                xmldict['institution_amt'] = 100 * (
    287297                    gateway_net_amt(self.context.amount_auth)
     
    290300                    - aaue_share_amt
    291301                    - student_union_due_amt
    292                     - student_welfare_assurance_amt)
     302                    - student_welfare_assurance_amt
     303                    - sports_amt
     304                    - library_amt)
    293305                xmltext = """<payment_item_detail>
    294306<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    299311<item_detail item_id="5" item_name="Student Union" item_amt="%(student_union_due_amt)d" bank_id="%(student_union_bank_id)s" acct_num="%(student_union_acct)s" />
    300312<item_detail item_id="6" item_name="Student Welfare Assurance" item_amt="%(student_welfare_assurance_amt)d" bank_id="123" acct_num="1006407792" />
     313<item_detail item_id="7" item_name="Sports Development Fee" item_amt="%(sports_amt)d" bank_id="123" acct_num="1005407792" />
     314<item_detail item_id="8" item_name="Library Development Fee" item_amt="%(library_amt)d" bank_id="8" acct_num="2000122995" />
    301315</item_details>
    302316</payment_item_detail>""" % xmldict
Note: See TracChangeset for help on using the changeset viewer.