Changeset 9154
- Timestamp:
- 4 Sep 2012, 07:07:44 (12 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/interfaces.py
r8867 r9154 71 71 """ 72 72 73 p_current = schema.Bool( 74 title = _(u'Current Session Payment'), 75 default = True, 76 required = False, 77 ) 78 73 79 p_level = schema.Int( 74 80 title = _(u'Payment Level'), -
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_browser.py
r8961 r9154 283 283 self.assertEqual(payment.p_item, u'') 284 284 self.assertEqual(error, None) 285 286 error, payment = utils.setPaymentDetails('schoolfee',self.student, 2004, 100) 287 self.assertEqual(error, u'Previous session payment not yet implemented.') 285 288 return -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r8961 r9154 48 48 return new_session, new_level 49 49 50 def setPaymentDetails(self, category, student): 50 def setPaymentDetails(self, category, student, 51 previous_session=None, previous_level=None): 51 52 """Create Payment object and set the payment data of a student for 52 53 the payment category specified. … … 57 58 amount = 0.0 58 59 error = u'' 60 if previous_session: 61 return _('Previous session payment not yet implemented.'), None 59 62 p_session = student['studycourse'].current_session 60 63 p_level = student['studycourse'].current_level 64 p_current = True 61 65 session = str(p_session) 62 66 try: … … 161 165 payment.p_session = p_session 162 166 payment.p_level = p_level 167 payment.p_current = p_current 163 168 payment.amount_auth = amount 164 169 return None, payment
Note: See TracChangeset for help on using the changeset viewer.