- Timestamp:
- 30 Oct 2023, 09:07:07 (14 months 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
r17267 r17629 286 286 self.assertEqual(payment.p_level, 100) 287 287 self.assertEqual(payment.p_session, 2004) 288 self.assertEqual(payment.amount_auth, 6100)288 self.assertEqual(payment.amount_auth, 876.0) 289 289 self.assertEqual(payment.p_item, u'My bed coordinates') 290 290 self.assertEqual(error, None) … … 314 314 self.assertEqual(payment.p_level, 100) 315 315 self.assertEqual(payment.p_session, 2004) 316 self.assertEqual(payment.amount_auth, 3812.5) # 62.5% * 876316 self.assertEqual(payment.amount_auth, 547.5) # 62.5% * 876 317 317 self.assertEqual(payment.p_item, u'My bed coordinates') 318 318 self.assertEqual(error, None) -
main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py
r17577 r17629 116 116 p_session = booking_session 117 117 p_item = bedticket.bed_coordinates 118 #if bedticket.bed.__parent__.maint_fee > 0:119 #amount = bedticket.bed.__parent__.maint_fee120 if student['studycourse'].current_session < 2022:121 amount = 6100.0122 else:123 amount = 10090.0118 if bedticket.bed.__parent__.maint_fee > 0: 119 amount = bedticket.bed.__parent__.maint_fee 120 #if student['studycourse'].current_session < 2022: 121 # amount = 6100.0 122 #else: 123 # amount = 10090.0 124 124 else: 125 125 return _(u'No bed space allocated.'), None
Note: See TracChangeset for help on using the changeset viewer.