Ignore:
Timestamp:
14 Feb 2018, 07:16:54 (7 years ago)
Author:
Henrik Bettermann
Message:

Add clearance_fee_dp payment.

Change schoolfee calculation and adjust to the modifications made for 2017/2018.

File:
1 edited

Legend:

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

    r14918 r14954  
    313313            if student.current_mode == 'ijmbe':
    314314                amount = academic_session.clearance_fee_ijmbe
     315            elif student.current_mode == 'dp_ft':
     316                amount = academic_session.clearance_fee_dp
    315317            elif student.faccode == 'FP':
    316318                amount = academic_session.clearance_fee_fp
     
    371373                    amount = getattr(certificate, 'school_fee_1', 0.0)
    372374                else:
    373                     if student.entry_session >= 2015:
     375                    if student.entry_session in (2015, 2016):
    374376                        amount = getattr(certificate, 'school_fee_2', 0.0)
    375377                    else:
     
    397399                except KeyError:
    398400                    return _(u'Session configuration object is not available.'), None
    399                 if student.entry_session >= 2015:
     401                if student.entry_session in (2015, 2016):
    400402                    amount = getattr(certificate, 'school_fee_2', 0.0)
    401                     # Cut school fee by 50%
    402                     if category == 'schoolfee_1' and amount:
    403                         amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT
    404403                else:
    405404                    amount = getattr(certificate, 'school_fee_3', 0.0)
     405                # Cut school fee by 50%
     406                if category == 'schoolfee_1' and amount:
     407                    amount = gateway_net_amt(amount) / 2 + GATEWAY_AMT
    406408            elif category == 'schoolfee_2':
    407409                amount = getattr(certificate, 'school_fee_2', 0.0)
Note: See TracChangeset for help on using the changeset viewer.