Changeset 13409 for main/waeup.aaue


Ignore:
Timestamp:
7 Nov 2015, 22:18:21 (9 years ago)
Author:
Henrik Bettermann
Message:

Subtract gateway amount from additional fees.

File:
1 edited

Legend:

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

    r13408 r13409  
    189189                joint_venture_amt = 1100.0
    190190                aaue_share_amt = 1000.0
    191                 student_union_due_amt = academic_session.union_fee
    192                 student_welfare_assurance_amt = academic_session.welfare_fee
     191                student_union_due_amt = academic_session.union_fee - \
     192                    dynamic_gateway_amt(academic_session.union_fee)
     193                student_welfare_assurance_amt = academic_session.welfare_fee - \
     194                    dynamic_gateway_amt(academic_session.welfare_fee)
    193195                xmldict['institution_bank_id'] = '7'
    194196                xmldict['institution_acct'] = '1014847058'
     
    202204                joint_venture_amt = 1000.0
    203205                aaue_share_amt = 1500.0
    204                 student_union_due_amt = academic_session.union_fee
    205                 student_welfare_assurance_amt = academic_session.welfare_fee
     206                student_union_due_amt = academic_session.union_fee - \
     207                    dynamic_gateway_amt(academic_session.union_fee)
     208                student_welfare_assurance_amt = academic_session.welfare_fee - \
     209                    dynamic_gateway_amt(academic_session.welfare_fee)
    206210                xmldict['institution_bank_id'] = '117'
    207211                xmldict['institution_acct'] = '1010827641'
     
    220224                    - joint_venture_amt
    221225                    - aaue_share_amt
    222                     - (student_union_due_amt - dynamic_gateway_amt(self.context.amount_auth))
    223                     - (student_welfare_assurance_amt - dynamic_gateway_amt(self.context.amount_auth))
     226                    - student_union_due_amt
     227                    - student_welfare_assurance_amt
    224228                    - dynamic_gateway_amt(self.context.amount_auth))
    225229                xmltext = """<payment_item_detail>
     
    269273            if self.context.p_category == 'clearance_incl':
    270274                # Clearance including additional fees
    271                 gown_fee_amt = academic_session.matric_gown_fee
    272                 aaue_fl_fee_amt = academic_session.lapel_fee
     275                gown_fee_amt = academic_session.matric_gown_fee - \
     276                    dynamic_gateway_amt(academic_session.matric_gown_fee)
     277                aaue_fl_fee_amt = academic_session.lapel_fee - \
     278                    dynamic_gateway_amt(academic_session.lapel_fee)
    273279                xmldict['gown_fee_amt'] = 100 * gown_fee_amt
    274280                xmldict['aaue_fl_fee_amt'] = 100 * aaue_fl_fee_amt
    275281                xmldict['institution_amt'] = 100 * (
    276282                    self.context.amount_auth
    277                     - (gown_fee_amt - dynamic_gateway_amt(self.context.amount_auth))
    278                     - (aaue_fl_fee_amt - dynamic_gateway_amt(self.context.amount_auth))
     283                    - gown_fee_amt
     284                    - aaue_fl_fee_amt
    279285                    - dynamic_gateway_amt(self.context.amount_auth))
    280286                xmltext = """<payment_item_detail>
Note: See TracChangeset for help on using the changeset viewer.