Changeset 16379


Ignore:
Timestamp:
20 Jan 2021, 10:13:07 (4 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to requery failed transactions.

Location:
main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact
Files:
2 edited

Legend:

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

    r16271 r16379  
    6969            self.context.__parent__.__parent__.year, self.context):
    7070            return ''
    71         if self.context.p_state in ('paid', 'waived', 'scholarship'):
     71        if self.context.p_state in ('paid', 'waived', 'scholarship', 'failed'):
    7272            return ''
    7373        return self.view.url(self.view.context, self.target)
     
    193193            self.redirect(self.url(self.context, '@@index'))
    194194            return
    195         if self.context.p_state in ('paid', 'waived', 'scholarship'):
    196             self.flash(_('This ticket has already been paid.'), type='danger')
     195        if self.context.p_state in ('paid', 'waived', 'scholarship', 'failed'):
     196            self.flash(_('This ticket has already been processed.'), type='danger')
    197197            return
    198198        applicant = self.context.__parent__
  • main/kofacustom.nigeria/trunk/src/kofacustom/nigeria/etranzact/studentsbrowser.py

    r16271 r16379  
    8383            self.context.student.current_session, self.context):
    8484            return ''
    85         if self.context.p_state in ('paid', 'waived', 'scholarship'):
     85        if self.context.p_state in ('paid', 'waived', 'scholarship', 'failed'):
    8686            return ''
    8787        return self.view.url(self.view.context, self.target)
     
    207207            self.redirect(self.url(self.context, '@@index'))
    208208            return
    209         if self.context.p_state in ('paid', 'waived', 'scholarship'):
    210             self.flash(_('This ticket has already been paid.'), type='danger')
     209        if self.context.p_state in ('paid', 'waived', 'scholarship', 'failed'):
     210            self.flash(_('This ticket has already been processed.'), type='danger')
    211211            return
    212212        student = self.context.student
Note: See TracChangeset for help on using the changeset viewer.