Changeset 15771


Ignore:
Timestamp:
7 Nov 2019, 16:07:07 (5 years ago)
Author:
Henrik Bettermann
Message:

Fix EtranzactEnterPinPageApplicant?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/payoutletbrowser.py

    r15770 r15771  
    115115        return
    116116
    117 class EtranzactEnterPinPageApplicant(EtranzactEnterPinPageStudent):
     117class EtranzactEnterPinPageApplicant(KofaPage):
    118118    """Enter confirmation PIN and submit to `EtranzactQueryHistoryPageApplicant`
    119119    """
    120120    grok.require('waeup.payApplicant')
    121121    grok.context(INigeriaApplicantOnlinePayment)
     122    grok.name('enterpin')
     123    grok.template('enterpin')
     124
     125    def update(self):
     126        if not module_activated(
     127            self.context.__parent__.__parent__.year, self.context):
     128            return
     129        super(EtranzactEnterPinPageStudent, self).update()
     130        # Already now it becomes an Etranzact payment. We set the net amount
     131        # and add the gateway amount.
     132        if not self.context.r_company:
     133            self.context.net_amt = self.context.amount_auth
     134            self.context.amount_auth += self.gateway_amt
     135            self.context.gateway_amt = self.gateway_amt
     136            self.context.r_company = u'etranzact'
     137        return
    122138
    123139class EtranzactQueryHistoryPageStudent(UtilityView, grok.View):
Note: See TracChangeset for help on using the changeset viewer.