Ignore:
Timestamp:
9 Nov 2015, 14:11:21 (9 years ago)
Author:
Henrik Bettermann
Message:

Students must not select regular school fee and clearance fee payments.
Fix EtranzactEnterPinPageStudent?.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py

    r13401 r13420  
    311311    def update(self):
    312312        super(EtranzactEnterPinPageStudent, self).update()
    313         if self.context.p_category != 'schoolfee':
     313        if not self.context.p_category.startswith('schoolfee'):
    314314            return
    315315        student = self.context.student
     
    320320        for ticket in student['payments'].values():
    321321            if ticket.p_state == 'paid' and \
    322                 ticket.p_category == 'clearance':
     322                ticket.p_category.startswith('clearance'):
    323323                return
    324324        self.flash(_('Please pay acceptance fee first.'), type="danger")
Note: See TracChangeset for help on using the changeset viewer.