Ignore:
Timestamp:
7 Nov 2015, 12:11:10 (9 years ago)
Author:
Henrik Bettermann
Message:

We can use dynamic_gateway_amt everywhere.

File:
1 edited

Legend:

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

    r13406 r13407  
    139139        current_session = student['studycourse'].current_session
    140140        try:
    141             academic_session = grok.getSite()['configuration'][str(current_session)]
     141            academic_session = grok.getSite()[
     142                'configuration'][str(current_session)]
    142143        except KeyError:
    143             self.flash(_(u'Session configuration object is not available.'), type='danger')
     144            self.flash(_(u'Session configuration object is not available.'),
     145                       type='danger')
    144146            self.redirect(self.url(self.context, '@@index'))
    145147            return
     
    219221                    - joint_venture_amt
    220222                    - aaue_share_amt
    221                     - (student_union_due_amt - GATEWAY_AMT)
    222                     - (student_welfare_assurance_amt - GATEWAY_AMT)
    223                     - GATEWAY_AMT)
     223                    - (student_union_due_amt - dynamic_gateway_amt(self.context.amount_auth))
     224                    - (student_welfare_assurance_amt - dynamic_gateway_amt(self.context.amount_auth))
     225                    - dynamic_gateway_amt(self.context.amount_auth))
    224226                xmltext = """<payment_item_detail>
    225227<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    239241                    - joint_venture_amt
    240242                    - aaue_share_amt
    241                     - GATEWAY_AMT)
     243                    - dynamic_gateway_amt(self.context.amount_auth))
    242244                xmltext = """<payment_item_detail>
    243245<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    274276                xmldict['institution_amt'] = 100 * (
    275277                    self.context.amount_auth
    276                     - (gown_fee_amt - GATEWAY_AMT)
    277                     - (aaue_fl_fee_amt - GATEWAY_AMT)
    278                     - GATEWAY_AMT)
     278                    - (gown_fee_amt - dynamic_gateway_amt(self.context.amount_auth))
     279                    - (aaue_fl_fee_amt - dynamic_gateway_amt(self.context.amount_auth))
     280                    - dynamic_gateway_amt(self.context.amount_auth))
    279281                xmltext = """<payment_item_detail>
    280282<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
     
    289291                xmldict['institution_amt'] = 100 * (
    290292                    self.context.amount_auth
    291                     - GATEWAY_AMT)
     293                    - dynamic_gateway_amt(self.context.amount_auth))
    292294                xmltext = """<payment_item_detail>
    293295<item_details detail_ref="%(detail_ref)s" college="%(institution_name)s" department="%(department)s" faculty="%(faculty)s">
Note: See TracChangeset for help on using the changeset viewer.