Ignore:
Timestamp:
19 Oct 2015, 05:36:42 (9 years ago)
Author:
Henrik Bettermann
Message:

Disable final year hostel allocation.

File:
1 edited

Legend:

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

    r13337 r13338  
    7777        if stage not in ('fr', 'fi'):
    7878            return _("Only fresh and final year students are allowed to book accommodation.")
     79
     80        ####################################################################################
     81        if stage == 'fi':
     82            return _("Accommodation booking for final year students has not yet started.")
     83        ####################################################################################
     84
     85
    7986        if stage != 'fr' and not student['studycourse'].previous_verdict in ('A', 'B'):
    8087            return _("Your are not eligible to book accommodation.")
     
    181188            stage = self.getAccommodationDetails(student)['bt']
    182189            stage = stage.split('_')[2]
     190
     191
     192            #####################################################
     193            if stage == 'fi':
     194                return _('Payment temporarily disabled.'), None
     195            #####################################################
     196
     197
    183198            if stage == 'fr':
    184199                amount += 500.0
Note: See TracChangeset for help on using the changeset viewer.