Ignore:
Timestamp:
30 Sep 2024, 20:49:43 (10 hours ago)
Author:
Henrik Bettermann
Message:

Set non-local student surcharges.

File:
1 edited

Legend:

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

    r17749 r17932  
    141141                            ), None
    142142                    amount = getattr(certificate, 'school_fee_2', 0.0)
     143            # Add non-local surcharges
    143144            if amount and not local(student):
    144                 if student.faccode == 'NCE':
    145                     amount += 14600
    146                 elif student.faccode not in (
    147                     'PRE', 'JUPEB', 'DELSU', 'IJMB', 'DP_FT', 'DP_PT'):
    148                     amount += 40000
     145                non_local_surcharge = 40000
     146                if student.faccode in ('FAG', 'FCP', 'FES',
     147                                       'FSS', 'FMS', 'FSC',
     148                                       'FAT', 'FED'):
     149                    if p_level == 200:
     150                        non_local_surcharge = 47000
     151                    if p_level == 500:
     152                        non_local_surcharge = 50000
     153                if student.faccode == 'FET':
     154                    if p_level == 500:
     155                        non_local_surcharge = 31000
     156                amount += non_local_surcharge
    149157        elif category == 'clearance':
    150158            try:
Note: See TracChangeset for help on using the changeset viewer.