Ignore:
Timestamp:
9 Nov 2015, 11:07:45 (9 years ago)
Author:
Henrik Bettermann
Message:

Catch zero amount school fee tickets before additional fees are added.

File:
1 edited

Legend:

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

    r13416 r13417  
    176176            else:
    177177                return _('Wrong state.'), None
     178            if amount in (0.0, None):
     179                return _(u'Amount could not be determined.'), None
    178180            # Add Student Union Fee and Welfare Assurance
    179181            if category == 'schoolfee_incl':
    180                 if amount is None:
    181                     # Otherwise we can't add somtehing
    182                     amount = 0.0
    183182                amount += gateway_net_amt(academic_session.welfare_fee) + \
    184183                    gateway_net_amt(academic_session.union_fee)
Note: See TracChangeset for help on using the changeset viewer.