- Timestamp:
- 11 Oct 2019, 11:31:38 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/kofacustom.iuokada/trunk/src/kofacustom/iuokada/students/utils.py
r15660 r15661 80 80 return _(u'Session configuration object is not available.'), None 81 81 # Determine fee. 82 if category == 'schoolfee': 82 if category in ('schoolfee', 'schoolfee40', 83 'schoolfee50', 'schoolfee60'): 83 84 try: 84 85 certificate = student['studycourse'].certificate … … 126 127 return _('Study course data are incomplete.'), None 127 128 amount = academic_session.clearance_fee 128 elif category == 'bed_allocation':129 p_item = self.getAccommodationDetails(student)['bt']130 amount = academic_session.booking_fee131 elif category == 'hostel_maintenance':132 amount = 0.0133 bedticket = student['accommodation'].get(134 str(student.current_session), None)135 if bedticket is not None and bedticket.bed is not None:136 p_item = bedticket.bed_coordinates137 if bedticket.bed.__parent__.maint_fee > 0:138 amount = bedticket.bed.__parent__.maint_fee139 else:140 # fallback141 amount = academic_session.maint_fee142 else:143 return _(u'No bed allocated.'), None129 #elif category == 'bed_allocation': 130 # p_item = self.getAccommodationDetails(student)['bt'] 131 # amount = academic_session.booking_fee 132 #elif category == 'hostel_maintenance': 133 # amount = 0.0 134 # bedticket = student['accommodation'].get( 135 # str(student.current_session), None) 136 # if bedticket is not None and bedticket.bed is not None: 137 # p_item = bedticket.bed_coordinates 138 # if bedticket.bed.__parent__.maint_fee > 0: 139 # amount = bedticket.bed.__parent__.maint_fee 140 # else: 141 # # fallback 142 # amount = academic_session.maint_fee 143 # else: 144 # return _(u'No bed allocated.'), None 144 145 else: 145 146 fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.