Changeset 15974 for main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Timestamp:
- 31 Jan 2020, 21:50:08 (5 years ago)
- Location:
- main/kofacustom.nigeria/trunk/src/kofacustom/nigeria
- Files:
-
- 7 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'): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r15842 r15974 362 362 if not module_activated( 363 363 self.context.student.current_session, self.context): 364 self.flash(_('Forbidden'), type='danger') 365 self.redirect(self.url(self.context, '@@index')) 364 366 return 365 367 error = self.init_update() … … 421 423 if not module_activated( 422 424 self.context.__parent__.__parent__.year, self.context): 425 self.flash(_('Forbidden'), type='danger') 426 self.redirect(self.url(self.context, '@@index')) 423 427 return 424 428 error = self.init_update() -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py
r15842 r15974 112 112 if not module_activated( 113 113 self.context.__parent__.__parent__.year, self.context): 114 self.flash(_('Forbidden'), type='danger') 115 self.redirect(self.url(self.context, '@@index')) 114 116 return 115 117 if self.context.p_state in ('paid', 'waived', 'scholarship'): … … 165 167 if not module_activated( 166 168 self.context.__parent__.__parent__.year, self.context): 169 self.flash(_('Forbidden'), type='danger') 170 self.redirect(self.url(self.context, '@@index')) 167 171 return 168 172 if self.context.p_state != 'paid' \ … … 279 283 if not module_activated( 280 284 self.context.__parent__.__parent__.year, self.context): 285 self.flash(_('Forbidden'), type='danger') 286 self.redirect(self.url(self.context, '@@index')) 281 287 return 282 288 self.orderId = self.context.p_id -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py
r15842 r15974 122 122 if not module_activated( 123 123 self.context.student.current_session, self.context): 124 self.flash(_('Forbidden'), type='danger') 125 self.redirect(self.url(self.context, '@@index')) 124 126 return 125 127 if self.context.p_state in ('paid', 'waived', 'scholarship'): … … 175 177 if not module_activated( 176 178 self.context.student.current_session, self.context): 179 self.flash(_('Forbidden'), type='danger') 180 self.redirect(self.url(self.context, '@@index')) 177 181 return 178 182 if self.context.p_state != 'paid' \ … … 298 302 if not module_activated( 299 303 self.context.student.current_session, self.context): 304 self.flash(_('Forbidden'), type='danger') 305 self.redirect(self.url(self.context, '@@index')) 300 306 return 301 307 self.orderId = self.context.p_id -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/students/browser.py
r15973 r15974 225 225 226 226 class NigeriaAccommodationDisplayFormPage(AccommodationDisplayFormPage): 227 """ Page to manage bed tickets. 228 This manage form page is for both students and students officers. 227 """ Page to view bed tickets. 229 228 """ 230 229 with_hostel_selection = False
Note: See TracChangeset for help on using the changeset viewer.