Changeset 9157 for main/waeup.uniben/trunk/src/waeup/uniben
- Timestamp:
- 5 Sep 2012, 06:01:47 (12 years ago)
- Location:
- main/waeup.uniben/trunk/src/waeup/uniben/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py
r9152 r9157 232 232 self.assertTrue(u'Amount could not be determined.' in error) 233 233 234 # Previous session payment ,fresh and returning235 # are beingdistinguished by their entry_level234 # Previous session payment; fresh and returning 235 # are distinguished by their entry_level 236 236 error, payment = utils.setPaymentDetails('schoolfee', 237 237 self.student, 2004, 300) … … 240 240 self.assertEqual(payment.p_level, 300) 241 241 self.assertFalse(payment.p_current) 242 self.student['studycourse'].entry_session = 2003 243 error, payment = utils.setPaymentDetails('schoolfee', 244 self.student, 2004, 300) 242 error, payment = utils.setPaymentDetails('schoolfee', 243 self.student, 2005, 300) 245 244 self.assertEqual(payment.amount_auth, 20000.0) 246 self.assertEqual(payment.p_session, 200 4)245 self.assertEqual(payment.p_session, 2005) 247 246 self.assertEqual(payment.p_level, 300) 248 247 self.assertFalse(payment.p_current) 249 248 250 # Current payment ,fresh and returning251 # are beingdistinguished by their state249 # Current payment; fresh and returning 250 # are distinguished by their state 252 251 IWorkflowState(self.student).setState('cleared') 253 252 error, payment = utils.setPaymentDetails('schoolfee', -
main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py
r9152 r9157 97 97 return _('Study course data are incomplete.'), None 98 98 if previous_session: 99 if student.current_session == student['studycourse'].entry_session:99 if previous_session == student['studycourse'].entry_session: 100 100 if student.is_foreigner: 101 101 amount = getattr(certificate, 'school_fee_3', 0.0)
Note: See TracChangeset for help on using the changeset viewer.