Changeset 15184


Ignore:
Timestamp:
4 Oct 2018, 06:41:49 (6 years ago)
Author:
Henrik Bettermann
Message:

Catch amount 0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/kofacustom.dspg/trunk/src/kofacustom/dspg/students/utils.py

    r15023 r15184  
    162162            # Local ND and HND students are given a rebate which has
    163163            # to be adjusted if the basic acceptance fee changes.
    164             if student.current_mode == 'nd_ft' and local(student):
     164            if amount and student.current_mode == 'nd_ft' and local(student):
    165165                amount -= 10000.0
    166             if student.current_mode == 'hnd_ft' and local(student):
     166            if amount and student.current_mode == 'hnd_ft' and local(student):
    167167                amount -= 5000.0
    168168        elif category == 'bed_allocation':
Note: See TracChangeset for help on using the changeset viewer.