Changeset 2883
- Timestamp:
- 8 Dec 2007, 15:20:55 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/pay_interswitch.py
r2877 r2883 33 33 student = getattr(students,student_id) 34 34 35 s brain = context.students_catalog(id=student_id)[0]36 #amount,description = context.getSchoolFee(s brain.faculty,sbrain.session,sbrain.course)35 student_record = context.students_catalog.getRecordByKey(student_id) 36 #amount,description = context.getSchoolFee(student_record.faculty,student_record.session,student_record.course) 37 37 info = {} 38 info['student'] = s brain38 info['student'] = student_record 39 39 info['payment_possible'] = False 40 40 info['amount'] = '0' … … 42 42 info['type_description'] = '' 43 43 info['pay_bill_to'] = '' 44 fee_dict = context.getSchoolFee(s brain)45 fulltime = s brain.mode.endswith('_ft')44 fee_dict = context.getSchoolFee(student_record) 45 fulltime = student_record.mode.endswith('_ft') 46 46 47 47 if not fee_dict: … … 56 56 info['payment_possible'] = True 57 57 info['type_description'] = fee_dict['description'] 58 info['pay_bill_to'] = s brain.name58 info['pay_bill_to'] = student_record.name 59 59 info['student_id'] = student_id 60 info['student_name'] = s brain.name61 info['type'] = ' ONL'60 info['student_name'] = student_record.name 61 info['type'] = 'online' 62 62 info['status'] = 'started' 63 info['target'] = sbrain.course 63 info['session_id'] = student_record.session 64 info['target'] = student_record.course 64 65 info['subject'] = 'schoolfee' 65 info['student_email'] = s brain.email66 info['student_email'] = student_record.email 66 67 now = DateTime.DateTime() 67 68 info['date'] = now
Note: See TracChangeset for help on using the changeset viewer.