- Timestamp:
- 31 Jan 2020, 21:50:08 (5 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact
- Files:
-
- 3 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'): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/payoutletbrowser.py
r15796 r15974 106 106 if not payoutlet_module_activated( 107 107 self.context.student.current_session, self.context): 108 return 109 super(EtranzactEnterPinPageStudent, self).update() 108 self.flash(_('Forbidden'), type='danger') 109 self.redirect(self.url(self.context, '@@index')) 110 return 110 111 # Already now it becomes an Etranzact payment. We set the net amount 111 112 # and add the gateway amount. … … 134 135 if not payoutlet_module_activated( 135 136 self.context.__parent__.__parent__.year, self.context): 136 return 137 super(EtranzactEnterPinPageApplicant, self).update() 137 self.flash(_('Forbidden'), type='danger') 138 self.redirect(self.url(self.context, '@@index')) 139 return 138 140 # Already now it becomes an Etranzact payment. We set the net amount 139 141 # and add the gateway amount. … … 178 180 if not payoutlet_module_activated( 179 181 self.context.student.current_session, self.context): 182 self.flash(_('Forbidden'), type='danger') 183 self.redirect(self.url(self.context, '@@index')) 180 184 return 181 185 if self.context.p_state == 'paid': … … 213 217 if not payoutlet_module_activated( 214 218 self.context.__parent__.__parent__.year, self.context): 219 self.flash(_('Forbidden'), type='danger') 220 self.redirect(self.url(self.context, '@@index')) 215 221 return 216 222 if self.context.p_state == 'paid': -
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.