Changeset 13689


Ignore:
Timestamp:
12 Feb 2016, 10:31:21 (9 years ago)
Author:
Henrik Bettermann
Message:

Do not allow to pay only additional fees if clearance fee is 0.

File:
1 edited

Legend:

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

    r13678 r13689  
    187187                amount = academic_session.clearance_fee
    188188            p_item = student['studycourse'].certificate.code
     189            if amount in (0.0, None):
     190                return _(u'Amount could not be determined.'), None
    189191            # Add Matric Gown Fee and Lapel Fee
    190             if category.endswith('_incl'):
    191                 if amount is None:
    192                     # Otherwise we can't add somtehing
    193                     amount = 0.0
     192            if category == 'clearance_incl':
    194193                amount += gateway_net_amt(academic_session.matric_gown_fee) + \
    195194                    gateway_net_amt(academic_session.lapel_fee)
Note: See TracChangeset for help on using the changeset viewer.