Ignore:
Timestamp:
13 Oct 2019, 13:44:40 (5 years ago)
Author:
Henrik Bettermann
Message:

School fee instalment payment (2nd version)

File:
1 edited

Legend:

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

    r15661 r15663  
    8181        # Determine fee.
    8282        if category in ('schoolfee', 'schoolfee40',
    83                         'schoolfee50', 'schoolfee60'):
     83                        'secondinstal'):
    8484            try:
    8585                certificate = student['studycourse'].certificate
     
    121121                            ), None
    122122                    amount = getattr(certificate, 'school_fee_2', 0.0)
     123            if category == 'schoolfee40':
     124                amount *= 0.4
     125            elif category == 'secondinstal':
     126                amount *= 0.6
    123127        elif category == 'clearance':
    124128            try:
Note: See TracChangeset for help on using the changeset viewer.