Ignore:
Timestamp:
9 May 2018, 07:49:16 (7 years ago)
Author:
Henrik Bettermann
Message:

PG students pay higher booking fee.

Location:
main/waeup.uniben/trunk/src/waeup/uniben
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • main/waeup.uniben/trunk/src/waeup/uniben/interfaces.py

    r14757 r15002  
    4545
    4646    booking_fee = schema.Float(
    47         title = _(u'Booking Fee'),
     47        title = _(u'UG Booking Fee (+ N500 PG)'),
    4848        default = 0.0,
    4949        required = False,
  • main/waeup.uniben/trunk/src/waeup/uniben/students/tests/test_browser.py

    r14902 r15002  
    685685        self.assertEqual(payment.p_level, 100)
    686686        self.assertEqual(payment.p_session, 2004)
    687         self.assertEqual(payment.amount_auth, 150.0)
     687        self.assertEqual(payment.amount_auth, 650.0)
    688688        self.assertEqual(payment.p_item, u'pg_male_all')
    689689        self.assertEqual(error, None)
  • main/waeup.uniben/trunk/src/waeup/uniben/students/utils.py

    r14970 r15002  
    234234            p_item = self.getAccommodationDetails(student)['bt']
    235235            amount = academic_session.booking_fee
    236             # Add student union dues
    237             #if not student.is_postgrad:
    238             #    stage = self.getAccommodationDetails(student)['bt']
    239             #    stage = stage.split('_')[2]
    240             #    if stage == 'fr':
    241             #        amount += 500.0
    242             #    elif stage in ('fi', 're') and student[
    243             #        'studycourse'].previous_verdict in (
    244             #            'A', 'B', 'F', 'J', 'M', 'C', 'Z'):
    245             #        amount += 300.0
    246             #    else:
    247             #        amount = 0.0
     236            if student.is_postgrad:
     237                amount += 500
    248238        elif category == 'hostel_maintenance':
    249239            amount = 0.0
Note: See TracChangeset for help on using the changeset viewer.