Ignore:
Timestamp:
28 Jan 2019, 10:59:49 (6 years ago)
Author:
Henrik Bettermann
Message:

Allow hostel booking if current session bed ticket has expired.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.kofa/trunk/src/waeup/kofa/students/utils.py

    r15277 r15306  
    639639            return _('Your current session does not '
    640640                     'match accommodation session.')
    641         if str(acc_details['booking_session']) in student['accommodation'].keys():
     641        bsession = str(acc_details['booking_session'])
     642        if bsession in student['accommodation'].keys() \
     643            and not 'booking expired' in \
     644            student['accommodation'][bsession].bed_coordinates:
    642645            return _('You already booked a bed space in '
    643646                     'current accommodation session.')
Note: See TracChangeset for help on using the changeset viewer.