Ignore:
Timestamp:
11 Oct 2019, 11:31:38 (5 years ago)
Author:
Henrik Bettermann
Message:

Start configuration of school fee payments.

File:
1 edited

Legend:

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

    r15660 r15661  
    8080            return _(u'Session configuration object is not available.'), None
    8181        # Determine fee.
    82         if category == 'schoolfee':
     82        if category in ('schoolfee', 'schoolfee40',
     83                        'schoolfee50', 'schoolfee60'):
    8384            try:
    8485                certificate = student['studycourse'].certificate
     
    126127                return _('Study course data are incomplete.'), None
    127128            amount = academic_session.clearance_fee
    128         elif category == 'bed_allocation':
    129             p_item = self.getAccommodationDetails(student)['bt']
    130             amount = academic_session.booking_fee
    131         elif category == 'hostel_maintenance':
    132             amount = 0.0
    133             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_coordinates
    137                 if bedticket.bed.__parent__.maint_fee > 0:
    138                     amount = bedticket.bed.__parent__.maint_fee
    139                 else:
    140                     # fallback
    141                     amount = academic_session.maint_fee
    142             else:
    143                 return _(u'No bed allocated.'), None
     129        #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
    144145        else:
    145146            fee_name = category + '_fee'
Note: See TracChangeset for help on using the changeset viewer.