Changeset 17208


Ignore:
Timestamp:
7 Dec 2022, 16:30:12 (2 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

File:
1 edited

Legend:

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

    r17160 r17208  
    122122            amount = academic_session.clearance_fee
    123123        elif category == 'bed_allocation':
    124             p_item = self.getAccommodationDetails(student)['bt']
     124            acco_details = self.getAccommodationDetails(student)
     125            p_session = acco_details['booking_session']
     126            p_item = acco_details['bt']
    125127            amount = academic_session.booking_fee
    126128        elif category == 'hostel_maintenance':
    127129            amount = 0.0
    128             bedticket = student['accommodation'].get(
    129                 str(student.current_session), None)
     130            booking_session = grok.getSite()['hostels'].accommodation_session
     131            bedticket = student['accommodation'].get(str(booking_session), None)
    130132            if bedticket is not None and bedticket.bed is not None:
     133                p_session = booking_session
    131134                p_item = bedticket.bed_coordinates
    132135                if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.