Changeset 15770 for main/kofacustom.nigeria/trunk/src/kofacustom
- Timestamp:
- 7 Nov 2019, 15:43:51 (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
r15768 r15770 42 42 try: 43 43 return getattr(grok.getSite()['configuration'][str(session)], 44 'etranzact_ payoutlet_enabled', False)44 'etranzact_webconnect_enabled', False) 45 45 except KeyError: 46 46 return False … … 58 58 def target_url(self): 59 59 if not module_activated( 60 self.context. student.current_session, self.context):60 self.context.__parent__.__parent__.year, self.context): 61 61 return '' 62 62 if self.context.p_state != 'unpaid': … … 76 76 def target_url(self): 77 77 if not module_activated( 78 self.context. student.current_session, self.context):78 self.context.__parent__.__parent__.year, self.context): 79 79 return '' 80 80 if self.context.p_state in ('paid', 'waived'): … … 107 107 def init_update(self): 108 108 if not module_activated( 109 self.context. student.current_session, self.context):109 self.context.__parent__.__parent__.year, self.context): 110 110 return _("Etranzact payments deactivated.") 111 111 if self.context.p_state == 'paid': … … 158 158 super(EtranzactReceiveResponseApplicant, self).update() 159 159 if not module_activated( 160 self.context. student.current_session, self.context):160 self.context.__parent__.__parent__.year, self.context): 161 161 return 162 162 applicant = self.context.__parent__ … … 192 192 def update(self): 193 193 if not module_activated( 194 self.context. student.current_session, self.context):194 self.context.__parent__.__parent__.year, self.context): 195 195 return 196 196 if self.context.p_state in ('paid', 'waived'): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/payoutletbrowser.py
r15755 r15770 44 44 grok.templatedir('browser_templates') 45 45 46 def module_activated(session): 46 def module_activated(session, payment): 47 if payment.r_company and payment.r_company != 'etranzact': 48 return False 47 49 try: 48 50 return getattr(grok.getSite()['configuration'][str(session)], … … 61 63 @property 62 64 def target_url(self): 63 if not module_activated(self.context.__parent__.__parent__.year): 65 if not module_activated( 66 self.context.__parent__.__parent__.year, self.context): 64 67 return '' 65 68 if self.context.p_state in ('paid', 'waived'): … … 77 80 @property 78 81 def target_url(self): 79 if not module_activated(self.context.student.current_session): 82 if not module_activated( 83 self.context.student.current_session, self.context): 80 84 return '' 81 85 if self.context.p_state in ('paid', 'waived'): … … 98 102 99 103 def update(self): 100 if not module_activated(self.context.student.current_session): 104 if not module_activated( 105 self.context.student.current_session, self.context): 101 106 return 102 if self.context.r_company and self.context.r_company != 'etranzact':103 return _("Payment ticket has been used for another payment gateway.")104 107 super(EtranzactEnterPinPageStudent, self).update() 105 108 # Already now it becomes an Etranzact payment. We set the net amount … … 129 132 130 133 def update(self, confirmation_number=None): 131 if not module_activated(self.context.student.current_session): 134 if not module_activated( 135 self.context.student.current_session, self.context): 132 136 return 133 137 if self.context.p_state == 'paid': … … 163 167 164 168 def update(self, confirmation_number=None): 165 if not module_activated(self.context.__parent__.__parent__.year): 169 if not module_activated( 170 self.context.__parent__.__parent__.year, self.context): 166 171 return 167 172 if self.context.p_state == 'paid': -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/studentsbrowser.py
r15755 r15770 37 37 grok.templatedir('browser_templates') 38 38 39 def module_activated(session): 39 def module_activated(session, payment): 40 if payment.r_company and payment.r_company != 'etranzact': 41 return False 40 42 try: 41 43 return getattr(grok.getSite()['configuration'][str(session)], … … 55 57 @property 56 58 def target_url(self): 57 if not module_activated(self.context.student.current_session): 59 if not module_activated( 60 self.context.student.current_session, self.context): 58 61 return '' 59 62 if self.context.p_state != 'unpaid': … … 72 75 @property 73 76 def target_url(self): 74 if not module_activated(self.context.student.current_session): 77 if not module_activated( 78 self.context.student.current_session, self.context): 75 79 return '' 76 80 if self.context.p_state in ('paid', 'waived'): … … 102 106 103 107 def init_update(self): 104 if not module_activated(self.context.student.current_session): 108 if not module_activated( 109 self.context.student.current_session, self.context): 105 110 return _("Etranzact payments deactivated.") 106 111 if self.context.p_state == 'paid': … … 152 157 def update(self): 153 158 super(EtranzactReceiveResponseStudent, self).update() 154 if not module_activated(self.context.student.current_session): 159 if not module_activated( 160 self.context.student.current_session, self.context): 155 161 return 156 162 student = self.context.student … … 185 191 186 192 def update(self): 187 if not module_activated(self.context.student.current_session): 193 if not module_activated( 194 self.context.student.current_session, self.context): 188 195 return 189 196 if self.context.p_state in ('paid', 'waived'): -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py
r15755 r15770 38 38 # Buttons 39 39 40 def module_activated(session): 40 def module_activated(session, payment): 41 if payment.r_company and payment.r_company != 'interswitch': 42 return False 41 43 try: 42 44 return getattr(grok.getSite()['configuration'][str(session)], … … 56 58 @property 57 59 def target_url(self): 58 if not module_activated(self.context.student.current_session): 60 if not module_activated( 61 self.context.student.current_session, self.context): 59 62 return '' 60 63 if self.context.p_state != 'unpaid': … … 68 71 @property 69 72 def target_url(self): 70 if not module_activated(self.context.__parent__.__parent__.year): 73 if not module_activated( 74 self.context.__parent__.__parent__.year, self.context): 71 75 return '' 72 76 if self.context.p_state != 'unpaid': … … 85 89 @property 86 90 def target_url(self): 87 if not module_activated(self.context.student.current_session): 91 if not module_activated( 92 self.context.student.current_session, self.context): 88 93 return '' 89 94 if self.context.p_state in ('paid', 'waived'): … … 98 103 @property 99 104 def target_url(self): 100 if not module_activated(self.context.__parent__.__parent__.year): 105 if not module_activated( 106 self.context.__parent__.__parent__.year, self.context): 101 107 return '' 102 108 if self.context.p_state in ('paid', 'waived'): … … 115 121 @property 116 122 def target_url(self): 117 if not module_activated(self.context.student.current_session): 123 if not module_activated( 124 self.context.student.current_session, self.context): 118 125 return '' 119 126 if self.context.p_state != 'paid' \ … … 129 136 @property 130 137 def target_url(self): 131 if not module_activated(self.context.__parent__.__parent__.year): 138 if not module_activated( 139 self.context.__parent__.__parent__.year, self.context): 132 140 return '' 133 141 if self.context.p_state != 'paid' \ … … 152 160 153 161 def update(self): 154 if not module_activated(self.context.student.current_session): 162 if not module_activated( 163 self.context.student.current_session, self.context): 155 164 return 156 165 if self.context.p_state in ('paid', 'waived'): … … 191 200 192 201 def update(self): 193 if not module_activated(self.context.__parent__.__parent__.year): 202 if not module_activated( 203 self.context.__parent__.__parent__.year, self.context): 194 204 return 195 205 if self.context.p_state == 'paid': … … 230 240 231 241 def update(self): 232 if not module_activated(self.context.student.current_session): 242 if not module_activated( 243 self.context.student.current_session, self.context): 233 244 return 234 245 if self.context.p_state != 'paid' \ … … 266 277 267 278 def update(self): 268 if not module_activated(self.context.__parent__.__parent__.year): 279 if not module_activated( 280 self.context.__parent__.__parent__.year, self.context): 269 281 return 270 282 if self.context.p_state != 'paid' \ … … 348 360 349 361 def update(self): 350 if not module_activated(self.context.student.current_session): 362 if not module_activated( 363 self.context.student.current_session, self.context): 351 364 return 352 365 error = self.init_update() … … 406 419 407 420 def update(self): 408 if not module_activated(self.context.__parent__.__parent__.year): 421 if not module_activated( 422 self.context.__parent__.__parent__.year, self.context): 409 423 return 410 424 error = self.init_update() -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser_templates/student_goto_interswitch.pt
r15683 r15770 3 3 4 4 <p i18n:translate=""> 5 These data will be submitted to the CollegePAY payment gateway, 5 These data will be submitted to the CollegePAY payment gateway. 6 Gateway and portal provider fees might have been added to the total amount, 6 7 please check: 7 8 </p> -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/applicantsbrowser.py
r15755 r15770 51 51 @property 52 52 def target_url(self): 53 if not module_activated(self.context.__parent__.__parent__.year): 53 if not module_activated( 54 self.context.__parent__.__parent__.year, self.context): 54 55 return '' 55 56 if self.context.p_state != 'unpaid': … … 68 69 @property 69 70 def target_url(self): 70 if not module_activated(self.context.__parent__.__parent__.year): 71 if not module_activated( 72 self.context.__parent__.__parent__.year, self.context): 71 73 return '' 72 74 if self.context.p_state in ('paid', 'waived'): … … 85 87 @property 86 88 def target_url(self): 87 if not module_activated(self.context.__parent__.__parent__.year): 89 if not module_activated( 90 self.context.__parent__.__parent__.year, self.context): 88 91 return '' 89 92 if self.context.p_state != 'paid' \ … … 107 110 108 111 def update(self): 109 if not module_activated(self.context.__parent__.__parent__.year): 112 if not module_activated( 113 self.context.__parent__.__parent__.year, self.context): 110 114 return 111 115 if self.context.p_state in ('paid', 'waived'): … … 159 163 160 164 def update(self): 161 if not module_activated(self.context.__parent__.__parent__.year): 165 if not module_activated( 166 self.context.__parent__.__parent__.year, self.context): 162 167 return 163 168 if self.context.p_state != 'paid' \ … … 272 277 273 278 def update(self): 274 if not module_activated(self.context.__parent__.__parent__.year): 279 if not module_activated( 280 self.context.__parent__.__parent__.year, self.context): 275 281 return 276 282 self.orderId = self.context.p_id -
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/remita/studentsbrowser.py
r15755 r15770 38 38 grok.templatedir('browser_templates') 39 39 40 def module_activated(session): 40 def module_activated(session, payment): 41 if payment.r_company and payment.r_company != 'interswitch': 42 return False 41 43 try: 42 44 return getattr(grok.getSite()['configuration'][str(session)], … … 58 60 @property 59 61 def target_url(self): 60 if not module_activated(self.context.student.current_session): 62 if not module_activated( 63 self.context.student.current_session, self.context): 61 64 return '' 62 65 if self.context.p_state != 'unpaid': … … 75 78 @property 76 79 def target_url(self): 77 if not module_activated(self.context.student.current_session): 80 if not module_activated( 81 self.context.student.current_session, self.context): 78 82 return '' 79 83 if self.context.p_state in ('paid', 'waived'): … … 93 97 @property 94 98 def target_url(self): 95 if not module_activated(self.context.student.current_session): 99 if not module_activated( 100 self.context.student.current_session, self.context): 96 101 return '' 97 102 if self.context.p_state != 'paid' \ … … 115 120 116 121 def update(self): 117 if not module_activated(self.context.student.current_session): 122 if not module_activated( 123 self.context.student.current_session, self.context): 118 124 return 119 125 if self.context.p_state in ('paid', 'waived'): … … 167 173 168 174 def update(self): 169 if not module_activated(self.context.student.current_session): 175 if not module_activated( 176 self.context.student.current_session, self.context): 170 177 return 171 178 if self.context.p_state != 'paid' \ … … 289 296 290 297 def update(self): 291 if not module_activated(self.context.student.current_session): 298 if not module_activated( 299 self.context.student.current_session, self.context): 292 300 return 293 301 self.orderId = self.context.p_id
Note: See TracChangeset for help on using the changeset viewer.