Changeset 3227
- Timestamp:
- 25 Feb 2008, 22:25:38 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r3226 r3227 77 77 78 78 info['student_name'] = student_record.name 79 payments_path = "%s/campus/students/%s/payments" % (context.portal_url .getPortalPath(),student_id)79 payments_path = "%s/campus/students/%s/payments" % (context.portal_url(),student_id) 80 80 payments = [] 81 81 payment_records = aq_payments(Eq('student_id',student_id) & Eq('session_id',student_record.session)) … … 84 84 for payment in payment_records: 85 85 if payment.status == "paid": 86 paid_fees += "%s_%s" % (payment.type,payment.session_id), 86 paid_fees += "%s_%s" % (payment.type,payment.session_id), 87 87 for payment in payment_records: 88 88 row = {} … … 93 93 payment.date.strftime("%d/%m/%y %H:%M:%S")) 94 94 url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:]) 95 row['is_requeryable'] = "%s_%s" % (payment.type,payment.session_id) not in paid_fees 95 row['is_requeryable'] = "%s_%s" % (payment.type,payment.session_id) not in paid_fees or str(member) in ('admin',) 96 96 row['is_approvable'] = is_so and row['is_requeryable'] 97 row['resp_desc'] = payment.resp_desc or payment.status97 row['resp_desc'] = payment.resp_desc or (row['is_requeryable'] and 'Payment Process Interrupted') 98 98 row['trans_ref'] = payment.order_id 99 99 if row['is_requeryable']:
Note: See TracChangeset for help on using the changeset viewer.