Changeset 15974 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/studentsbrowser.py
- Timestamp:
- 31 Jan 2020, 21:50:08 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/studentsbrowser.py
r15796 r15974 129 129 130 130 def update(self): 131 if not webconnect_module_activated( 132 self.context.student.current_session, self.context): 133 self.flash(_('Forbidden'), type='danger') 134 self.redirect(self.url(self.context, '@@index')) 135 return 131 136 # Already now it becomes an Etranzact payment. We set the net amount 132 137 # and add the gateway amount. 133 if not webconnect_module_activated(134 self.context.student.current_session, self.context):135 return _("Etranzact payments deactivated.")136 138 if not self.context.r_company: 137 139 self.context.net_amt = self.context.amount_auth … … 159 161 if not webconnect_module_activated( 160 162 self.context.student.current_session, self.context): 163 self.flash(_('Forbidden'), type='danger') 164 self.redirect(self.url(self.context, '@@index')) 161 165 return 162 166 student = self.context.student … … 193 197 if not webconnect_module_activated( 194 198 self.context.student.current_session, self.context): 199 self.flash(_('Forbidden'), type='danger') 200 self.redirect(self.url(self.context, '@@index')) 195 201 return 196 202 if self.context.p_state in ('paid', 'waived', 'scholarship'):
Note: See TracChangeset for help on using the changeset viewer.