Ignore:
Timestamp:
3 Jan 2023, 17:40:18 (21 months ago)
Author:
Henrik Bettermann
Message:

Add ExportPDFTishipSlip.

File:
1 edited

Legend:

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

    r17236 r17255  
    4949        'form.lagos_abuja': _(u'Travel History'),
    5050        'form.company_suspected': _(u'History of Contact/Infection'),
     51        'form.genotype': _(u'TISHIP Registration Form Data'),
    5152        }
    5253
     
    9495        if not student.state in acc_details['allowed_states']:
    9596            return _("You are in the wrong registration state.")
    96         if student['studycourse'].current_session != acc_details[
    97             'booking_session']:
    98             return _('Your current session does not '
    99                      'match accommodation session.')
     97        #if student['studycourse'].current_session != acc_details[
     98        #    'booking_session']:
     99        #    return _('Your current session does not '
     100        #             'match accommodation session.')
     101        if  acc_details['booking_session'] - student[
     102            'studycourse'].current_session > self.ACCOMMODATION_SPAN:
     103            return _('Your current session does not allow ' + \
     104                    'to book accommodation.')
    100105        stage = bt.split('_')[2]
    101106        if not student.is_postgrad and stage != 'fr' and not student[
Note: See TracChangeset for help on using the changeset viewer.