Ignore:
Timestamp:
10 Mar 2022, 20:25:28 (3 years ago)
Author:
Henrik Bettermann
Message:

Ease fee calculation.

File:
1 edited

Legend:

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

    r16840 r16873  
    268268            return _(u'Session configuration object is not available.'), None
    269269        # Determine fee.
    270         if category == 'transfer':
    271             amount = academic_session.transfer_fee
    272         elif category == 'transcript':
    273             amount = academic_session.transcript_fee
    274         elif category == 'gown':
    275             amount = academic_session.gown_fee
    276         elif category == 'jupeb':
    277             amount = academic_session.jupeb_fee
    278         elif category == 'clinexam':
    279             amount = academic_session.clinexam_fee
    280         elif category == 'medical_quest':
    281             amount = academic_session.medical_quest_fee
    282         elif category.startswith('pharmd') \
     270        if category.startswith('pharmd') \
    283271            and student.current_mode == 'special_ft':
    284272            amount = 80000.0
     
    428416            if student.is_staff:
    429417                amount /= 2
     418        else:
     419            fee_name = category + '_fee'
     420            amount = getattr(academic_session, fee_name, 0.0)
    430421        if amount in (0.0, None):
    431422            return _('Amount could not be determined.'), None
Note: See TracChangeset for help on using the changeset viewer.