Ignore:
Timestamp:
15 Mar 2022, 08:51:02 (3 years ago)
Author:
Henrik Bettermann
Message:

Let's use bed allocation payment tickets for pre-reservation.

File:
1 edited

Legend:

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

    r16835 r16882  
    118118        elif category == 'bed_allocation':
    119119            p_item = self.getAccommodationDetails(student)['bt']
    120             amount = academic_session.booking_fee
     120            amount = 0.0
    121121        elif category == 'hostel_maintenance':
    122122            amount = 0.0
     
    145145            fee_name = category + '_fee'
    146146            amount = getattr(academic_session, fee_name, 0.0)
    147         if amount in (0.0, None):
     147        if category != 'bed_allocation' and amount in (0.0, None):
    148148            return _('Amount could not be determined.'), None
    149149        if self.samePaymentMade(student, category, p_item, p_session):
Note: See TracChangeset for help on using the changeset viewer.