- Timestamp:
- 7 Mar 2008, 07:28:18 (17 years ago)
- Location:
- WAeUP_SRP/uniben
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/uniben/profiles/default/layouts/payment.xml
r2928 r3276 207 207 <property name="hidden_readonly_layout_modes"/> 208 208 </widget> 209 210 209 210 211 211 <table> 212 212 <row> 213 <cell name="type_description"/>214 </row>215 <row>216 213 <cell name="status"/> 217 </row> 214 </row> 218 215 <row> 219 216 <cell name="order_id"/> -
WAeUP_SRP/uniben/profiles/default/vocabularies/payment_status.xml
r2878 r3276 10 10 <item key="paid" msgid="">Paid</item> 11 11 <item key="started" msgid="">Started</item> 12 <item key="due" msgid="">Due</item>13 12 <item key="failed" msgid="">Unsuccessfull</item> 13 <item key="invalid" msgid="">Invalid</item> 14 14 </object> -
WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py
r3260 r3276 78 78 payments_path = "%s/campus/students/%s/payments" % (context.portal_url(),student_id) 79 79 payments = [] 80 payment_records = aq_payments(Eq('student_id',student_id)) 80 payment_records = aq_payments(Eq('student_id',student_id)) # & Eq('session_id',student_record.session)) 81 81 vocabularies = context.portal_vocabularies 82 82 paid_fees = [] … … 88 88 row = {} 89 89 row['id'] = payment.key 90 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 91 vocabularies.sessions.get(payment.session_id), 92 payment.amount, 93 payment.date.strftime("%d/%m/%y %H:%M:%S")) 90 if payment.status == 'invalid': 91 row['title'] = "Invalid Payment, Naira %s, %s" % (payment.amount, 92 payment.date.strftime("%d/%m/%y %H:%M:%S")) 93 else: 94 row['title'] = "%s for Session %s, Naira %s, %s" % (vocabularies.payment_categories.get(payment.category), 95 vocabularies.sessions.get(payment.session_id), 96 payment.amount, 97 payment.date.strftime("%d/%m/%y %H:%M:%S")) 94 98 url = row['url'] = "%s/p%s" % (payments_path,payment.order_id[6:]) 95 99 row['is_requeryable'] = "%s_%s" % (payment.category,payment.session_id) not in paid_fees and payment.type == 'online' or str(member) in ('admin',)
Note: See TracChangeset for help on using the changeset viewer.