Changeset 2883


Ignore:
Timestamp:
8 Dec 2007, 15:20:55 (17 years ago)
Author:
joachim
Message:

include session_id for payment

File:
1 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py

    r2877 r2883  
    3333student = getattr(students,student_id)
    3434
    35 sbrain = context.students_catalog(id=student_id)[0]
    36 #amount,description = context.getSchoolFee(sbrain.faculty,sbrain.session,sbrain.course)
     35student_record = context.students_catalog.getRecordByKey(student_id)
     36#amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course)
    3737info = {}
    38 info['student'] = sbrain
     38info['student'] = student_record
    3939info['payment_possible'] = False
    4040info['amount'] = '0'
     
    4242info['type_description'] = ''
    4343info['pay_bill_to'] = ''
    44 fee_dict = context.getSchoolFee(sbrain)
    45 fulltime = sbrain.mode.endswith('_ft')
     44fee_dict = context.getSchoolFee(student_record)
     45fulltime = student_record.mode.endswith('_ft')
    4646
    4747if not fee_dict:
     
    5656info['payment_possible'] = True
    5757info['type_description'] = fee_dict['description']
    58 info['pay_bill_to'] = sbrain.name
     58info['pay_bill_to'] = student_record.name
    5959info['student_id'] = student_id
    60 info['student_name'] = sbrain.name
    61 info['type'] = 'ONL'
     60info['student_name'] = student_record.name
     61info['type'] = 'online'
    6262info['status'] = 'started'
    63 info['target'] = sbrain.course
     63info['session_id'] = student_record.session
     64info['target'] = student_record.course
    6465info['subject'] = 'schoolfee'
    65 info['student_email'] = sbrain.email
     66info['student_email'] = student_record.email
    6667now = DateTime.DateTime()
    6768info['date'] = now
Note: See TracChangeset for help on using the changeset viewer.