- Timestamp:
- 5 Dec 2022, 11:07:59 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py
r17173 r17202 136 136 amount = 25000.0 137 137 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 140 142 elif category == 'hostel_maintenance': 141 143 amount = 0.0 142 b edticket = 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) 144 146 if bedticket is not None and bedticket.bed is not None: 147 p_session = booking_session 145 148 p_item = bedticket.bed_coordinates 146 149 if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.