Ignore:
Timestamp:
15 Jan 2010, 17:56:09 (15 years ago)
Author:
Henrik Bettermann
Message:

enable online payment for returning students (the fee structure of returning full-time students is still missing)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_epayment/getSchoolFee.py

    r4154 r4818  
    121121         }
    122122
    123 d = {}
     123
     124
     125next_info = context.getNextInfo(brain)
     126next_session_str = next_info['next_session_str']
     127description = "School Fee for Session %s" % next_session_str
     128
     129d = {}
     130
    124131if brain.mode.endswith('_ft'):
    125132    f = 1
     
    128135    d['new'] = session_fees[brain.session][f]
    129136    d['returning'] = 'not set'
    130     d['description'] = "School Fee for Session %s" % context.getSessionsVoc(key=brain.session)
     137    d['description'] =description
    131138if pt_fees.has_key(brain.course):
    132139    d = pt_fees[brain.course]
    133     d['description'] = "School Fee for Session %s, %s" % (context.getSessionsVoc(key=brain.session),
    134                                                          d['description'])
     140    d['description'] = "%s (%s)" % (description,d['description'])
     141   
     142d['next_session_id'] = next_info['next_session_id']
     143                                                   
    135144return d
    136145
Note: See TracChangeset for help on using the changeset viewer.