Changeset 9612 for main/waeup.fceokene/trunk/src
- Timestamp:
- 11 Nov 2012, 06:07:51 (12 years ago)
- Location:
- main/waeup.fceokene/trunk/src/waeup/fceokene/students
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.fceokene/trunk/src/waeup/fceokene/students/tests/test_browser.py
r9611 r9612 262 262 self.assertEqual(payment.p_level, 100) 263 263 self.assertEqual(payment.p_session, 2004) 264 self.assertEqual(payment.amount_auth, 180.0) 264 self.assertEqual(payment.amount_auth, 4000.0) 265 self.assertEqual(payment.p_item, u'My bed coordinates') 266 self.assertEqual(error, None) 267 268 self.certificate.study_mode = u'ug_sw' 269 error, payment = utils.setPaymentDetails('hostel_maintenance',self.student) 270 self.assertEqual(payment.p_level, 100) 271 self.assertEqual(payment.p_session, 2004) 272 self.assertEqual(payment.amount_auth, 2500.0) 265 273 self.assertEqual(payment.p_item, u'My bed coordinates') 266 274 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r9611 r9612 91 91 if current_session != acc_details['booking_session']: 92 92 return _(u'Current session does not match accommodation session.'), None 93 amount = academic_session.maint_fee 93 if student.current_mode.endswith('_sw') or student.current_mode == 'pd_ft': 94 amount = 2500.0 95 else: 96 amount = 4000.0 94 97 elif category == 'clearance': 95 98 amount = academic_session.clearance_fee
Note: See TracChangeset for help on using the changeset viewer.