Ignore:
Timestamp:
31 Aug 2021, 15:26:46 (3 years ago)
Author:
Henrik Bettermann
Message:

Adjust to changes in base package.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.ecns/trunk/src/kofacustom/ecns/etranzact/browser.py

    r15847 r16593  
    5252
    5353    def update(self):
     54        if not webconnect_module_activated(
     55            self.context.__parent__.__parent__.year, self.context):
     56            self.flash(_('Forbidden'), type='danger')
     57            self.redirect(self.url(self.context, '@@index'))
     58            return
    5459        # Already now it becomes an Etranzact payment. We set the net amount
    5560        # and add the gateway amount.
    56         if not webconnect_module_activated(
    57             self.context.__parent__.__parent__.year, self.context):
    58             return _("Etranzact payments deactivated.")
    5961        if not self.context.r_company:
    6062            self.context.net_amt = self.context.amount_auth
     
    6769            self.flash(error, type='danger')
    6870            self.redirect(self.url(self.context, '@@index'))
    69             return
    7071        return
    7172
     
    9495
    9596    def update(self):
     97        if not webconnect_module_activated(
     98            self.context.student.current_session, self.context):
     99            self.flash(_('Forbidden'), type='danger')
     100            self.redirect(self.url(self.context, '@@index'))
     101            return
    96102        # Already now it becomes an Etranzact payment. We set the net amount
    97103        # and add the gateway amount.
    98         if not webconnect_module_activated(
    99             self.context.student.current_session, self.context):
    100             return _("Etranzact payments deactivated.")
    101104        if not self.context.r_company:
    102105            self.context.net_amt = self.context.amount_auth
Note: See TracChangeset for help on using the changeset viewer.