Changeset 16770


Ignore:
Timestamp:
2 Feb 2022, 08:22:31 (3 years ago)
Author:
Henrik Bettermann
Message:

Only add fees if amount can be determined.

File:
1 edited

Legend:

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

    r16764 r16770  
    240240                    else:
    241241                        amount = getattr(certificate, 'school_fee_4', 0.0)
    242             amount += MICROSOFT_FEE(student)
    243             amount += DEVELOP_FEE(student)
    244             amount += TECH_FEE(student)
     242            if amount:
     243                amount += MICROSOFT_FEE(student)
     244                amount += DEVELOP_FEE(student)
     245                amount += TECH_FEE(student)
    245246        elif category == 'clearance':
    246247            try:
Note: See TracChangeset for help on using the changeset viewer.