Ignore:
Timestamp:
8 Oct 2024, 01:15:11 (3 months ago)
Author:
Henrik Bettermann
Message:

Customize getAccommodationDetails

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17939 r17940  
    245245        return None, payment
    246246
     247    def checkAccommodationRequirements(self, student, acc_details):
     248        msg = super(CustomStudentsUtils, self).checkAccommodationRequirements(
     249            student, acc_details)
     250        if msg:
     251            return msg
     252        if student.faccode not in ('FLW', 'FMED',):
     253            return _('You are not eligible to book accommodation.')
     254        return
     255
    247256    def getAccommodationDetails(self, student):
    248257        """Determine the accommodation data of a student.
     
    276285        else:
    277286            sex = 'male'
    278         special_handling = 'na'
     287        special_handling = 'regular'
    279288        if student.faccode in ('FLW',):
    280289            special_handling = 'oyibu'
Note: See TracChangeset for help on using the changeset viewer.