Ignore:
Timestamp:
30 Oct 2023, 09:07:07 (13 months ago)
Author:
Henrik Bettermann
Message:

Revert maintenance fee modification.

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  
    286286        self.assertEqual(payment.p_level, 100)
    287287        self.assertEqual(payment.p_session, 2004)
    288         self.assertEqual(payment.amount_auth, 6100)
     288        self.assertEqual(payment.amount_auth, 876.0)
    289289        self.assertEqual(payment.p_item, u'My bed coordinates')
    290290        self.assertEqual(error, None)
     
    314314        self.assertEqual(payment.p_level, 100)
    315315        self.assertEqual(payment.p_session, 2004)
    316         self.assertEqual(payment.amount_auth, 3812.5)  # 62.5% * 876
     316        self.assertEqual(payment.amount_auth, 547.5)  # 62.5% * 876
    317317        self.assertEqual(payment.p_item, u'My bed coordinates')
    318318        self.assertEqual(error, None)
  • main/waeup.fceokene/trunk/src/waeup/fceokene/students/utils.py

    r17577 r17629  
    116116                p_session = booking_session
    117117                p_item = bedticket.bed_coordinates
    118                 #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
     118                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
    124124            else:
    125125                return _(u'No bed space allocated.'), None
Note: See TracChangeset for help on using the changeset viewer.