Changeset 8710
- Timestamp:
- 13 Jun 2012, 13:56:50 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/etranzact/browser.py
r8704 r8710 28 28 from waeup.kofa.students.viewlets import ApprovePaymentActionButton as APABStudent 29 29 from waeup.kofa.applicants.viewlets import ApprovePaymentActionButton as APABApplicant 30 from waeup.aaue.interfaces import academic_sessions_vocab 30 31 from waeup.aaue.interfaces import MessageFactory as _ 31 32 from waeup.aaue.students.interfaces import ICustomStudentOnlinePayment … … 46 47 else: 47 48 try: 48 owner = IPaymentWebservice(results[0]).payee 49 owner = IPaymentWebservice(results[0]) 50 full_name = owner.display_fullname 51 matric_no = owner.id 52 faculty = owner.faculty 53 department = owner.department 49 54 except (TypeError, AttributeError): 50 55 self.output = '-1' 51 56 return 52 57 amount = results[0].amount_auth 53 self.output = 'PayeeName=%s&Amount=%s' % (owner, amount) 58 payment_type = results[0].category 59 programme_type = results[0].p_item 60 academic_session = academic_sessions_vocab.getTerm( 61 results[0].p_session).title 62 status = results[0].p_state 63 self.output = ('FULL_NAME1=%s&MATRIC_NO1=%s&' + 64 'ACADEMIC_SESSION1=%s&PAYMENT_TYPE1=%s&' + 65 'PAYMENT_TYPE3=&FACULTY1=%s&' + 66 'DEPARTMENT1=%s&PROGRAMME_TYPE1=%s&' + 67 'RETURN_TYPE1=&FEE_AMOUNT1=%s&' + 68 'TRANSACTION_STATUS1=%s') % (full_name, matric_no, 69 academic_session, payment_type, faculty, department, 70 programme_type, amount, status) 54 71 return 55 72
Note: See TracChangeset for help on using the changeset viewer.