Changeset 13482 for main/waeup.aaue/trunk/src/waeup
- Timestamp:
- 19 Nov 2015, 05:26:44 (9 years ago)
- Location:
- main/waeup.aaue/trunk/src/waeup/aaue/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaue/trunk/src/waeup/aaue/students/tests/test_utils.py
r13374 r13482 81 81 IWorkflowState(self.student).setState('returning') 82 82 error, payment = utils.setPaymentDetails('schoolfee',self.student) 83 self.assertEqual(error, u'Personal data form is not properly filled.') 84 self.student.father_name = u'Rudolf' 85 error, payment = utils.setPaymentDetails('schoolfee',self.student) 83 86 self.assertEqual(payment.p_level, 200) 84 87 self.assertEqual(payment.p_session, 2005) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13474 r13482 187 187 amount = getattr(certificate, 'school_fee_1', 0.0) 188 188 elif student.state == RETURNING: 189 if not student.father_name: 190 return _("Personal data form is not properly filled."), None 189 191 # In case of returning school fee payment the payment session 190 192 # and level contain the values of the session the student
Note: See TracChangeset for help on using the changeset viewer.