Ignore:
Timestamp:
7 Nov 2019, 15:43:51 (5 years ago)
Author:
Henrik Bettermann
Message:

Do not show buttons of other payment gatewas if payment was already send.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/applicantsbrowser.py

    r15768 r15770  
    4242    try:
    4343        return getattr(grok.getSite()['configuration'][str(session)],
    44             'etranzact_payoutlet_enabled', False)
     44            'etranzact_webconnect_enabled', False)
    4545    except KeyError:
    4646        return False
     
    5858    def target_url(self):
    5959        if not module_activated(
    60             self.context.student.current_session, self.context):
     60            self.context.__parent__.__parent__.year, self.context):
    6161            return ''
    6262        if self.context.p_state != 'unpaid':
     
    7676    def target_url(self):
    7777        if not module_activated(
    78             self.context.student.current_session, self.context):
     78            self.context.__parent__.__parent__.year, self.context):
    7979            return ''
    8080        if self.context.p_state in ('paid', 'waived'):
     
    107107    def init_update(self):
    108108        if not module_activated(
    109             self.context.student.current_session, self.context):
     109            self.context.__parent__.__parent__.year, self.context):
    110110            return _("Etranzact payments deactivated.")
    111111        if self.context.p_state == 'paid':
     
    158158        super(EtranzactReceiveResponseApplicant, self).update()
    159159        if not module_activated(
    160             self.context.student.current_session, self.context):
     160            self.context.__parent__.__parent__.year, self.context):
    161161            return
    162162        applicant = self.context.__parent__
     
    192192    def update(self):
    193193        if not module_activated(
    194             self.context.student.current_session, self.context):
     194            self.context.__parent__.__parent__.year, self.context):
    195195            return
    196196        if self.context.p_state in ('paid', 'waived'):
Note: See TracChangeset for help on using the changeset viewer.