Changeset 17202


Ignore:
Timestamp:
5 Dec 2022, 11:07:59 (2 years ago)
Author:
Henrik Bettermann
Message:

Adjust to base package.

Set account for ug_pt application.

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

Legend:

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

    r17168 r17202  
    192192        xmldict['institution_bank_id'] = '117'
    193193        if self.context.__parent__.__parent__.prefix in (
    194                                     'pre', 'jupeb', 'dp_ft', 'dp_pt'):
     194                                    'pre', 'jupeb', 'dp_ft', 'dp_pt', 'ug_pt'):
    195195            xmldict['institution_acct'] = '1011431799'
    196196            xmldict['institution_bank_id'] = '117'
  • main/kofacustom.unidel/trunk/src/kofacustom/unidel/students/utils.py

    r17173 r17202  
    136136                amount = 25000.0
    137137        elif category == 'bed_allocation':
    138             p_item = self.getAccommodationDetails(student)['bt']
    139             amount = 0.0
     138            acco_details = self.getAccommodationDetails(student)
     139            p_session = acco_details['booking_session']
     140            p_item = acco_details['bt']
     141            amount = academic_session.booking_fee
    140142        elif category == 'hostel_maintenance':
    141143            amount = 0.0
    142             bedticket = student['accommodation'].get(
    143                 str(student.current_session), None)
     144            booking_session = grok.getSite()['hostels'].accommodation_session
     145            bedticket = student['accommodation'].get(str(booking_session), None)
    144146            if bedticket is not None and bedticket.bed is not None:
     147                p_session = booking_session
    145148                p_item = bedticket.bed_coordinates
    146149                if bedticket.bed.__parent__.maint_fee > 0:
Note: See TracChangeset for help on using the changeset viewer.