Changeset 2882 for WAeUP_SRP/uniben
- Timestamp:
- 8 Dec 2007, 14:05:39 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/uniben/waeup_custom/pay_interswitch.py
r2878 r2882 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')46 new = s brain.review_state == 'cleared_and_validated'47 returning = s brain.review_state == 'returning'44 fee_dict = context.getSchoolFee(student_record) 45 fulltime = student_record.mode.endswith('_ft') 46 new = student_record.review_state == 'cleared_and_validated' 47 returning = student_record.review_state == 'returning' 48 48 if not fee_dict or (not new and fulltime) or not (new or returning): 49 49 return context.interswitch_form(info=info) … … 56 56 if fulltime: 57 57 pay_item_id = "6100" 58 #info['type_code'] = s brain.faculty #type_code is redundant and will be removed soon58 #info['type_code'] = student_record.faculty #type_code is redundant and will be removed soon 59 59 info['bank'] = '' 60 60 else: 61 61 pay_item_id = "6101" 62 #info['type_code'] = s brain.course #type_code is redundant and will be removed soon62 #info['type_code'] = student_record.course #type_code is redundant and will be removed soon 63 63 info['bank'] = '' 64 64 info['payment_possible'] = True 65 65 info['type_description'] = fee_dict['description'] 66 info['pay_bill_to'] = s brain.name66 info['pay_bill_to'] = student_record.name 67 67 info['pay_ship_to'] = "University of Benin" 68 68 info['student_id'] = student_id 69 info['student_name'] = sbrain.name 70 info['student_email'] = sbrain.email 69 info['student_name'] = student_record.name 70 info['student_email'] = student_record.email 71 info['session_id'] = student_record.session 71 72 info['type'] = 'online' 72 73 info['status'] = 'started' 73 info['target'] = s brain.course74 info['target'] = student_record.course 74 75 info['subject'] = 'schoolfee' 75 76 now = DateTime.DateTime() … … 138 139 xmldict = {} 139 140 xmldict['detail_ref'] = args['txn_ref'] 140 xmldict['department'] = s brain.department141 xmldict['faculty'] = s brain.faculty141 xmldict['department'] = student_record.department 142 xmldict['faculty'] = student_record.faculty 142 143 #xmldict['wema_amt'] = "%d" % wema_amount 143 144 #xmldict['provider_amt'] = "%d" % provider_amount
Note: See TracChangeset for help on using the changeset viewer.