Ignore:
Timestamp:
24 Oct 2012, 22:01:59 (12 years ago)
Author:
Henrik Bettermann
Message:

Add payment category 'block_h_payment'.

The interswitch module has still to be configured. Bank details and pay_item_id is missing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.futminna/trunk/src/waeup/futminna/students/utils.py

    r9404 r9409  
    120120                'booking_session']:
    121121                return _(u'Current session does not match accommodation session.'), None
    122             if student.faccode == 'SSE':
    123                 amount = 15000.0
    124             elif student.current_level  in ('100','200','300','400','500') and \
     122            if student.current_level  in ('100','200','300','400','500') and \
    125123                student.faccode in ('EET','SET','AAT','ICT','EMT'):
    126124                amount = 12000.0
    127125            else:
    128126                amount = 10000.0
     127            p_item = acc_details['bt']
     128        elif category == 'block_h_maintenance':
     129            acc_details = self.getAccommodationDetails(student)
     130            if student['studycourse'].current_session != acc_details[
     131                'booking_session']:
     132                return _(u'Current session does not match accommodation session.'), None
     133            amount = 15000.0
    129134            p_item = acc_details['bt']
    130135        elif category == 'bed_allocation':
Note: See TracChangeset for help on using the changeset viewer.