Changeset 10180 for main/waeup.aaua/trunk/src
- Timestamp:
- 15 May 2013, 14:08:21 (12 years ago)
- Location:
- main/waeup.aaua/trunk/src/waeup/aaua/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.aaua/trunk/src/waeup/aaua/students/tests/test_browser.py
r10173 r10180 164 164 error, payment = utils.setPaymentDetails('schoolfee_2',self.student) 165 165 self.assertEqual(payment.amount_auth, 60.0) 166 167 # Returning students with entry session 2005-2007 168 # get a reduction of 20000 169 IWorkflowState(self.student).setState('returning') 170 self.student['studycourse'].entry_session = 2005 171 error, payment = utils.setPaymentDetails('schoolfee_1',self.student) 172 self.assertEqual(payment.amount_auth, -19920.0) -
main/waeup.aaua/trunk/src/waeup/aaua/students/utils.py
r10173 r10180 85 85 elif category == 'schoolfee_1': 86 86 amount = getattr(certificate, 'school_fee_2', 0.0) * ratio 87 if student['studycourse'].entry_session in (2005, 2006, 2007): 88 amount -= 20000.0 87 89 elif category == 'schoolfee_2' and ratio: 88 90 amount = getattr(certificate, 'school_fee_2', 0.0) * (1- ratio)
Note: See TracChangeset for help on using the changeset viewer.