Changeset 13854 for main/waeup.aaue/trunk
- Timestamp:
- 28 Apr 2016, 07:26:19 (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
r13853 r13854 88 88 self.student.father_name = u'Rudolf' 89 89 error, payment = utils.setPaymentDetails('schoolfee_incl',self.student) 90 self.assertEqual(error, ' This type of payment is not allowed.')90 self.assertEqual(error, 'No additional fees required.') 91 91 error, payment = utils.setPaymentDetails('schoolfee',self.student) 92 92 self.assertEqual(payment.p_level, 200) … … 100 100 IWorkflowState(self.student).setState('cleared') 101 101 error, payment = utils.setPaymentDetails('clearance_incl',self.student) 102 self.assertEqual(error, ' This type of payment is not allowed.')102 self.assertEqual(error, 'No additional fees required.') 103 103 error, payment = utils.setPaymentDetails('clearance',self.student) 104 104 self.assertEqual(payment.p_level, 100) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13853 r13854 210 210 elif student.is_postgrad: # and not part-time 211 211 if category != 'clearance': 212 return _(" This type of payment is not allowed."), None212 return _("No additional fees required."), None 213 213 amount = academic_session.clearance_fee_pg 214 214 else: … … 230 230 return _('Study course data are incomplete.'), None 231 231 if student.is_postgrad and category != 'schoolfee': 232 return _(" This type of payment is not allowed."), None232 return _("No additional fees required."), None 233 233 if category in ('schoolfee_1', 'schoolfee_2'): 234 234 if student.current_mode == 'ug_pt': … … 248 248 amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT 249 249 elif student.state == RETURNING: 250 if student.is_postgrad and category == 'schoolfee_incl':251 return _("No additional fees required."), None252 250 if not student.father_name: 253 251 return _("Personal data form is not properly filled."), None
Note: See TracChangeset for help on using the changeset viewer.