Changeset 8677 for main/waeup.aaue/trunk/src/waeup/aaue/students
- Timestamp:
- 11 Jun 2012, 11:18:27 (13 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_browser.py
r8600 r8677 321 321 self.assertEqual(error, None) 322 322 323 # Add penalty fee. 324 self.app['configuration']['2004'].penalty_ug = 99.0 325 error, payment = utils.setPaymentDetails('schoolfee',self.student) 326 self.assertEqual(payment.amount_auth, 40099.0) 327 323 328 IWorkflowState(self.student).setState('returning') 324 329 error, payment = utils.setPaymentDetails('schoolfee',self.student) 325 330 self.assertEqual(payment.p_level, 200) 326 331 self.assertEqual(payment.p_session, 2005) 327 self.assertEqual(payment.amount_auth, 200 00.0)332 self.assertEqual(payment.amount_auth, 20099.0) 328 333 self.assertEqual(payment.p_item, u'CERT1') 329 334 self.assertEqual(error, None) -
main/waeup.aaue/trunk/src/waeup/aaue/students/utils.py
r8623 r8677 68 68 except KeyError: 69 69 return _(u'Session configuration object is not available.'), None 70 # Determine fee. 70 71 if category == 'transfer': 71 72 amount = academic_session.transfer_fee … … 107 108 if amount in (0.0, None): 108 109 return _(u'Amount could not be determined.'), None 110 # Add session specific penalty fee. 111 if category == 'schoolfee' and student.is_postgrad: 112 amount += academic_session.penalty_pg 113 elif category == 'schoolfee': 114 amount += academic_session.penalty_ug 115 # Create ticket. 109 116 for key in student['payments'].keys(): 110 117 ticket = student['payments'][key]
Note: See TracChangeset for help on using the changeset viewer.