Ignore:
Timestamp:
23 Nov 2017, 12:27:08 (7 years ago)
Author:
Henrik Bettermann
Message:

Students get also a discount if they pay for previous sessions.

File:
1 edited

Legend:

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

    r14902 r14904  
    293293                    else:
    294294                        amount = getattr(certificate, 'school_fee_2', 0.0)
     295                        # Old returning students might get a discount.
     296                        if student.entry_session < 2017 \
     297                            and certificate.custom_float_1:
     298                            amount -= certificate.custom_float_1
    295299            else:
    296300                if student.state == CLEARED:
Note: See TracChangeset for help on using the changeset viewer.