Ignore:
Timestamp:
25 Nov 2019, 11:02:44 (5 years ago)
Author:
Henrik Bettermann
Message:

Show correct buttons if payment state in ('paid', 'waived', 'scholarship').

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/interswitch/browser.py

    r15770 r15842  
    9292            self.context.student.current_session, self.context):
    9393            return ''
    94         if self.context.p_state in ('paid', 'waived'):
     94        if self.context.p_state in ('paid', 'waived', 'scholarship'):
    9595            return ''
    9696        return self.view.url(self.view.context, self.target)
     
    106106            self.context.__parent__.__parent__.year, self.context):
    107107            return ''
    108         if self.context.p_state in ('paid', 'waived'):
     108        if self.context.p_state in ('paid', 'waived', 'scholarship'):
    109109            return ''
    110110        return self.view.url(self.view.context, self.target)
     
    163163            self.context.student.current_session, self.context):
    164164            return
    165         if self.context.p_state in ('paid', 'waived'):
     165        if self.context.p_state in ('paid', 'waived', 'scholarship'):
    166166            self.flash(_('This ticket has already been paid.'), type='danger')
    167167            return
Note: See TracChangeset for help on using the changeset viewer.