Ignore:
Timestamp:
8 Dec 2007, 14:05:00 (17 years ago)
Author:
joachim
Message:

include session_id for payment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/base/skins/waeup_epayment/pay_by_sc.py

    r2877 r2881  
    3333
    3434student = getattr(students,student_id)
    35 s_brain = context.students_catalog(id=student_id)[0]
     35student_record = context.students_catalog.getRecordByKey(student_id)
    3636
    37 # session = s_brain.session
     37# session = student_record.session
    3838# next_session, next_session_str = context.getNextSessionId(session)
    3939
    40 next_info = context.getNextInfo(s_brain)
     40next_info = context.getNextInfo(student_record)
    4141next_session_id = next_info['next_session_id']
    4242next_session_str = next_info['next_session_str']
     
    105105    info['type'] = 'sc'
    106106    info['status'] = 'paid'
    107     info['target'] = s_brain.course
     107    info['session_id'] = student_record.session
     108    info['target'] = student_record.course
    108109    info['subject'] = 'schoolfee'
    109110    info['resp_code'] = "SC"
Note: See TracChangeset for help on using the changeset viewer.