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.

Location:
main/kofacustom.unidel/trunk/src/kofacustom/unidel
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/interswitch/browser.py

    r16869 r16882  
    9696            xmldict['institution_acct'] = '1011739172'
    9797            xmldict['institution_bank_id'] = '117'
    98         if self.context.p_category == 'bed_allocation':
     98        if self.context.p_category == 'hostel_maintenance':
    9999            xmldict['institution_acct'] = '1012551384'
    100100            xmldict['institution_bank_id'] = '117'
  • 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):
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/utils/utils.py

    r16870 r16882  
    2828        'schoolfee': 'School Fee',
    2929        'clearance': 'Acceptance Fee',
    30         'bed_allocation': 'Bed Allocation Fee',
    31         #'hostel_maintenance': 'Hostel Maintenance Fee',
     30        'bed_allocation': 'Bed Reservation',
     31        'hostel_maintenance': 'Accommodation Fee',
    3232        #'transfer': 'Transfer Fee',
    3333        #'gown': 'Gown Hire Fee',
     
    4242        'schoolfee': 'School Fee',
    4343        'clearance': 'Acceptance Fee',
    44         'bed_allocation': 'Bed Allocation Fee',
     44        'bed_allocation': 'Bed Reservation (free of charge)',
     45        'hostel_maintenance': 'Accommodation Fee',
    4546        }
    4647
Note: See TracChangeset for help on using the changeset viewer.