- Timestamp:
- 31 Aug 2021, 15:26:22 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.skeleton/trunk/src/kofacustom/skeleton/etranzact/browser.py
r15847 r16592 52 52 53 53 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 54 59 # Already now it becomes an Etranzact payment. We set the net amount 55 60 # and add the gateway amount. 56 if not webconnect_module_activated(57 self.context.__parent__.__parent__.year, self.context):58 return _("Etranzact payments deactivated.")59 61 if not self.context.r_company: 60 62 self.context.net_amt = self.context.amount_auth … … 67 69 self.flash(error, type='danger') 68 70 self.redirect(self.url(self.context, '@@index')) 69 return70 71 return 71 72 … … 94 95 95 96 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 96 102 # Already now it becomes an Etranzact payment. We set the net amount 97 103 # and add the gateway amount. 98 if not webconnect_module_activated(99 self.context.student.current_session, self.context):100 return _("Etranzact payments deactivated.")101 104 if not self.context.r_company: 102 105 self.context.net_amt = self.context.amount_auth
Note: See TracChangeset for help on using the changeset viewer.