Changeset 17266


Ignore:
Timestamp:
11 Jan 2023, 07:18:08 (22 months ago)
Author:
Henrik Bettermann
Message:

Adjust customized method according to changes in base package.

File:
1 edited

Legend:

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

    r17078 r17266  
    308308            amount = academic_session.transcript_fee_inter
    309309        elif category == 'bed_allocation':
     310            acco_details = self.getAccommodationDetails(student)
     311            p_session = acco_details['booking_session']
     312            p_item = acco_details['bt']
    310313            amount = academic_session.booking_fee
    311314        elif category == 'restitution':
     
    317320        elif category == 'hostel_maintenance':
    318321            amount = 0.0
    319             bedticket = student['accommodation'].get(
    320                 str(student.current_session), None)
     322            booking_session = grok.getSite()['hostels'].accommodation_session
     323            bedticket = student['accommodation'].get(str(booking_session), None)
    321324            if bedticket is not None and bedticket.bed is not None:
     325                p_session = booking_session
    322326                p_item = bedticket.display_coordinates
    323327                if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.