Changeset 9733 for main/waeup.kofa/trunk/src/waeup
- Timestamp:
- 27 Nov 2012, 18:56:08 (12 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/payment.py
r9506 r9733 94 94 95 95 @property 96 def reg_ or_matric_number(self):97 " Matric number or reg number of payee"96 def reg_number(self): 97 "Reg number of payee" 98 98 return self.context.__parent__.reg_number 99 99 100 100 @property 101 def matric_number(self): 102 return '' 103 104 @property 101 105 def faculty(self): 102 "Faculty of payee"103 106 return '' 104 107 105 108 @property 106 109 def department(self): 107 "Department of payee"108 110 return '' 109 111 -
main/waeup.kofa/trunk/src/waeup/kofa/payments/interfaces.py
r9533 r9733 134 134 display_fullname = Attribute('Name of payee') 135 135 id = Attribute('Id of payee') 136 reg_or_matric_number = Attribute('Matric number or reg number of payee') 136 reg_number = Attribute('Reg number of payee') 137 matric_number = Attribute('Matric number of payee') 137 138 faculty = Attribute('Faculty of payee') 138 139 department = Attribute('Department of payee') -
main/waeup.kofa/trunk/src/waeup/kofa/students/payments.py
r9506 r9733 158 158 159 159 @property 160 def reg_or_matric_number(self):160 def matric_number(self): 161 161 "Matric number or reg number of payee" 162 162 return self.context.student.matric_number 163 164 @property 165 def reg_number(self): 166 "Reg number or reg number of payee" 167 return self.context.student.reg_number 163 168 164 169 @property -
main/waeup.kofa/trunk/src/waeup/kofa/students/tests/test_browser.py
r9716 r9733 2663 2663 'FULL_NAME=Anna Tester&FACULTY=fac1&DEPARTMENT=dep1' 2664 2664 '&PAYMENT_ITEM=My Certificate&PAYMENT_CATEGORY=School Fee' 2665 '&ACADEMIC_SESSION=2004/2005&MATRIC_NUMBER=234&FEE_AMOUNT=0.0') 2665 '&ACADEMIC_SESSION=2004/2005&MATRIC_NUMBER=234®_NUMBER=123' 2666 '&FEE_AMOUNT=0.0') 2666 2667 self.browser.open('http://localhost/app/paymentrequest?NONSENSE=nonsense') 2667 2668 self.assertEqual(self.browser.contents, '-1') -
main/waeup.kofa/trunk/src/waeup/kofa/webservices.py
r9632 r9733 54 54 owner = IPaymentWebservice(results[0]) 55 55 full_name = owner.display_fullname 56 matric_number = owner.reg_or_matric_number 56 reg_number = owner.reg_number 57 matric_number = owner.matric_number 57 58 faculty = owner.faculty 58 59 department = owner.department … … 73 74 'ACADEMIC_SESSION=%s&' + 74 75 'MATRIC_NUMBER=%s&' + 76 'REG_NUMBER=%s&' + 75 77 'FEE_AMOUNT=%s') % (full_name, faculty, 76 78 department, payment_item, payment_category, 77 academic_session, matric_number, amount)79 academic_session, matric_number, reg_number, amount) 78 80 return 79 81
Note: See TracChangeset for help on using the changeset viewer.