Changeset 13853 for main/waeup.aaue/trunk/src
- Timestamp:
- 28 Apr 2016, 07:01:01 (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
r13846 r13853 87 87 self.assertEqual(error, u'Personal data form is not properly filled.') 88 88 self.student.father_name = u'Rudolf' 89 error, payment = utils.setPaymentDetails('schoolfee_incl',self.student) 90 self.assertEqual(error, 'This type of payment is not allowed.') 89 91 error, payment = utils.setPaymentDetails('schoolfee',self.student) 90 92 self.assertEqual(payment.p_level, 200) … … 97 99 self.assertEqual(error, 'Acceptance Fee payments not allowed.') 98 100 IWorkflowState(self.student).setState('cleared') 101 error, payment = utils.setPaymentDetails('clearance_incl',self.student) 102 self.assertEqual(error, 'This type of payment is not allowed.') 99 103 error, payment = utils.setPaymentDetails('clearance',self.student) 100 104 self.assertEqual(payment.p_level, 100) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r13846 r13853 209 209 amount = academic_session.clearance_fee_med 210 210 elif student.is_postgrad: # and not part-time 211 if category != 'clearance': 212 return _("This type of payment is not allowed."), None 211 213 amount = academic_session.clearance_fee_pg 212 214 else: … … 227 229 except (AttributeError, TypeError): 228 230 return _('Study course data are incomplete.'), None 231 if student.is_postgrad and category != 'schoolfee': 232 return _("This type of payment is not allowed."), None 229 233 if category in ('schoolfee_1', 'schoolfee_2'): 230 234 if student.current_mode == 'ug_pt':
Note: See TracChangeset for help on using the changeset viewer.