- Timestamp:
- 11 Feb 2020, 09:51:47 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/etranzact/browser.py
r15937 r15999 51 51 52 52 def update(self): 53 # Already now it becomes an Etranzact payment. We set the net amount54 # and add the gateway amount.55 53 if not webconnect_module_activated( 56 54 self.context.__parent__.__parent__.year, self.context): 57 return _("Etranzact payments deactivated.") 55 self.flash(_('Forbidden'), type='danger') 56 self.redirect(self.url(self.context, '@@index')) 57 return 58 # Already now it becomes an Etranzact payment. We set the net amount 59 # and add the gateway amount. 58 60 if not self.context.r_company: 59 61 self.context.net_amt = self.context.amount_auth … … 93 95 94 96 def update(self): 95 # Already now it becomes an Etranzact payment. We set the net amount96 # and add the gateway amount.97 97 if not webconnect_module_activated( 98 98 self.context.student.current_session, self.context): 99 return _("Etranzact payments deactivated.") 99 self.flash(_('Forbidden'), type='danger') 100 self.redirect(self.url(self.context, '@@index')) 101 return 102 # Already now it becomes an Etranzact payment. We set the net amount 103 # and add the gateway amount. 100 104 if not self.context.r_company: 101 105 self.context.net_amt = self.context.amount_auth … … 135 139 if not payoutlet_module_activated( 136 140 self.context.student.current_session, self.context): 137 return 138 super(EtranzactEnterPinPageStudent, self).update() 141 self.flash(_('Forbidden'), type='danger') 142 self.redirect(self.url(self.context, '@@index')) 143 return 139 144 # Already now it becomes an Etranzact payment. We set the net amount 140 145 # and add the gateway amount. … … 159 164 if not payoutlet_module_activated( 160 165 self.context.__parent__.__parent__.year, self.context): 161 return 162 super(EtranzactEnterPinPageApplicant, self).update() 166 self.flash(_('Forbidden'), type='danger') 167 self.redirect(self.url(self.context, '@@index')) 168 return 163 169 # Already now it becomes an Etranzact payment. We set the net amount 164 170 # and add the gateway amount.
Note: See TracChangeset for help on using the changeset viewer.