Changeset 3312 for WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
- Timestamp:
- 10 Mar 2008, 14:50:20 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/fceokene/waeup_custom/getPaymentsFolderInfo.py
r3275 r3312 90 90 if payment.status == 'invalid': 91 91 row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount, 92 payment.date.strftime("%d/%m/%y %H:%M:%S")) 93 else: 92 payment.date.strftime("%d/%m/%y %H:%M:%S")) 93 else: 94 94 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 95 95 vocabularies.sessions.get(payment.session_id), 96 96 payment.amount, 97 97 payment.date.strftime("%d/%m/%y %H:%M:%S")) 98 url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:]) 98 oid = payment.order_id 99 onr = oid.rfind('-')+1 100 if onr > 0: 101 start_pos = onr 102 else: 103 start_pos = 6 104 url = row['url'] = "%s/p%s" % (payments_path,oid[start_pos:]) 99 105 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',) 100 106 row['is_approvable'] = is_so and row['is_requeryable'] and payment.category == 'schoolfee' # does not make sense for maitenance
Note: See TracChangeset for help on using the changeset viewer.