Ignore:
Timestamp:
13 May 2014, 07:16:45 (11 years ago)
Author:
Henrik Bettermann
Message:

This requirement applies to students in state 'cleared' and entry_session
greater than 2013 only.

Location:
main/waeup.aaue/trunk/src/waeup/aaue
Files:
2 edited

Legend:

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

    r11627 r11631  
    2424from zope.component import getUtility
    2525from zope.catalog.interfaces import ICatalog
    26 from waeup.kofa.interfaces import IUniversity
     26from waeup.kofa.interfaces import IUniversity, CLEARED
    2727from waeup.kofa.payments.interfaces import IPayer
    2828from waeup.kofa.webservices import PaymentDataWebservice
     
    280280            return
    281281        student = self.context.student
     282        if self.context.student.state != CLEARED:
     283            return
     284        if self.context.student.entry_session < 2013:
     285            return
    282286        for ticket in student['payments'].values():
    283287            if ticket.p_state == 'paid' and \
  • main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py

    r11627 r11631  
    154154        ctrl = self.browser.getControl(name='val_id')
    155155        sfpt_value = ctrl.options[1]
     156        self.student['studycourse'].entry_session = 2013
    156157        self.browser.open(self.payments_path + '/' + sfpt_value)
    157158        self.browser.getLink("Query eTranzact History").click()
Note: See TracChangeset for help on using the changeset viewer.