Ignore:
Timestamp:
5 Dec 2022, 11:07:59 (2 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

Set account for ug_pt application.

File:
1 edited

Legend:

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

    r17173 r17202  
    136136                amount = 25000.0
    137137        elif category == 'bed_allocation':
    138             p_item = self.getAccommodationDetails(student)['bt']
    139             amount = 0.0
     138            acco_details = self.getAccommodationDetails(student)
     139            p_session = acco_details['booking_session']
     140            p_item = acco_details['bt']
     141            amount = academic_session.booking_fee
    140142        elif category == 'hostel_maintenance':
    141143            amount = 0.0
    142             bedticket = student['accommodation'].get(
    143                 str(student.current_session), None)
     144            booking_session = grok.getSite()['hostels'].accommodation_session
     145            bedticket = student['accommodation'].get(str(booking_session), None)
    144146            if bedticket is not None and bedticket.bed is not None:
     147                p_session = booking_session
    145148                p_item = bedticket.bed_coordinates
    146149                if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.