- Timestamp:
- 13 Mar 2008, 13:52:11 (17 years ago)
- Location:
- WAeUP_SRP
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
WAeUP_SRP/base/skins/waeup_epayment/getSchoolFeePrefix.py
r3060 r3329 25 25 26 26 student_id = context.getStudentId() 27 s brain= context.students_catalog(id=student_id)[0]27 student_record = context.students_catalog(id=student_id)[0] 28 28 res = context.portal_catalog(portal_type="Certificate", 29 id = sbrain.course) 30 #set_trace() 29 id = student_record.course) 30 31 31 32 if not res: 32 33 logger.info('%s, certificate %s not found' % (student_id,course)) … … 36 37 if not prefix or prefix == 'none': 37 38 prefix = res[0].getPath().split('/')[-4] 39 if student_record.review_state == 'cleared_and_validated': 40 prefix = prefix + 'NEW' 38 41 return prefix -
WAeUP_SRP/uniben/waeup_custom/getPaymentsFolderInfo.py
r3311 r3329 67 67 if review_state == 'cleared_and_validated' and session != '07': 68 68 info['payment_method'] = "online_payment" 69 #elif review_state == 'cleared_and_validated' and session == '07':70 #info['payment_method'] = "sc_payment"69 elif review_state == 'cleared_and_validated' and session == '07': 70 info['payment_method'] = "sc_payment" 71 71 elif review_state == 'returning' and info['next_session'] != session: 72 72 info['payment_method'] = "sc_payment" … … 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),
Note: See TracChangeset for help on using the changeset viewer.