Ignore:
Timestamp:
12 Nov 2017, 17:02:44 (7 years ago)
Author:
Henrik Bettermann
Message:

Old returning students get a discount of N30000 (science) and N28000 (non-science) respectively. we use the custom_textline_1 attribute of certificates to distinguish science and non-science students.

File:
1 edited

Legend:

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

    r14858 r14892  
    351351                    else:
    352352                        amount = getattr(certificate, 'school_fee_2', 0.0)
     353                        # Old returning students get a discount of
     354                        # N30000 and N28000 respectively.
     355                        if student.entry_session < 2017 \
     356                            and certificate.custom_textline_1:
     357                            if certificate.custom_textline_1.lower() == 'science':
     358                                amount -= 30000
     359                            elif certificate.custom_textline_1.lower() == 'non-science':
     360                                amount -= 28000
    353361            # Give 50% school fee discount to staff members.
    354362            if student.is_staff:
Note: See TracChangeset for help on using the changeset viewer.