Ignore:
Timestamp:
13 Oct 2011, 06:06:11 (13 years ago)
Author:
Henrik Bettermann
Message:

In Student Online Payments we have to store the item session. Thus we need StudentOnlinePayment? must get its own interface which includes a session attribute.

File:
1 edited

Legend:

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

    r6876 r6877  
    2222
    2323def getPaymentDetails(category, student):
    24     #import pdb; pdb.set_trace()
    25     session_string = academic_sessions_vocab.by_value[
    26         student['studycourse'].current_session].title
     24    p_session = student['studycourse'].current_session
    2725    surcharge_1 = surcharge_2 = surcharge_3 = 0
     26    p_item = u''
    2827    if category == 'transfer':
    2928        amount = 500
    30         item = u'Session %s' % session_string
    3129    elif category == 'gown':
    3230        amount = 500
    33         item = u'Session %s' % session_string
    3431    elif category == 'hostel_maintenance':
    3532        amount = 300
    36         item = u'Session %s' % session_string
    3733    elif category == 'schoolfee':
    3834        surcharge_1 = 1500 # BT amount
    3935        surcharge_2 = 300 # Interswitch amount
    4036        amount = getSchoolFee(student, surcharge_1 + surcharge_2)
    41         item = u'Session %s' % session_string
    42     return amount, item, surcharge_1, surcharge_2, surcharge_3
     37        code = student['studycourse'].certificate.code
     38        #session_string = academic_sessions_vocab.by_value[p_session + 1].title
     39        p_item = code
     40        p_session += 1
     41    return amount, p_item, p_session, surcharge_1, surcharge_2, surcharge_3
    4342
    4443# To be moved to the FUTMinna customization package
Note: See TracChangeset for help on using the changeset viewer.