Changeset 15974 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/applicantsbrowser.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/applicantsbrowser.py
r15796 r15974 120 120 121 121 def update(self): 122 if not webconnect_module_activated( 123 self.context.__parent__.__parent__.year, self.context): 124 self.flash(_('Forbidden'), type='danger') 125 self.redirect(self.url(self.context, '@@index')) 126 return 122 127 # Already now it becomes an Etranzact payment. We set the net amount 123 128 # and add the gateway amount. 124 if not webconnect_module_activated(125 self.context.__parent__.__parent__.year, self.context):126 return _("Etranzact payments deactivated.")127 129 if not self.context.r_company: 128 130 self.context.net_amt = self.context.amount_auth … … 150 152 if not webconnect_module_activated( 151 153 self.context.__parent__.__parent__.year, self.context): 154 self.flash(_('Forbidden'), type='danger') 155 self.redirect(self.url(self.context, '@@index')) 152 156 return 153 157 applicant = self.context.__parent__ … … 184 188 if not webconnect_module_activated( 185 189 self.context.__parent__.__parent__.year, self.context): 190 self.flash(_('Forbidden'), type='danger') 191 self.redirect(self.url(self.context, '@@index')) 186 192 return 187 193 if self.context.p_state in ('paid', 'waived', 'scholarship'):
Note: See TracChangeset for help on using the changeset viewer.