- Timestamp:
- 7 Dec 2022, 16:30:12 (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.edocons/trunk/src/kofacustom/edocons/students/utils.py
r17160 r17208 122 122 amount = academic_session.clearance_fee 123 123 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'] 125 127 amount = academic_session.booking_fee 126 128 elif category == 'hostel_maintenance': 127 129 amount = 0.0 128 b edticket = 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) 130 132 if bedticket is not None and bedticket.bed is not None: 133 p_session = booking_session 131 134 p_item = bedticket.bed_coordinates 132 135 if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.