Ignore:
Timestamp:
1 Dec 2011, 13:01:24 (13 years ago)
Author:
Henrik Bettermann
Message:

Allow more than one ticket of same type if former tickets are not paid. The tickets might have been processed by the payment gateway and received an unsuccessful callback.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.sirp/trunk/src/waeup/sirp/students/browser.py

    r7240 r7248  
    10801080        for key in self.context.keys():
    10811081            ticket = self.context[key]
    1082             if ticket.p_category == p_category and \
     1082            if ticket.p_state == 'paid' and\
     1083               ticket.p_category == p_category and \
    10831084               ticket.p_item == p_item and \
    10841085               ticket.p_session == p_session:
    10851086                  self.flash(
    1086                       'This payment ticket already exists.')
     1087                      'This type of payment ticket exists and ticket has been paid.')
    10871088                  self.redirect(self.url(self.context))
    10881089                  return
Note: See TracChangeset for help on using the changeset viewer.