Ignore:
Timestamp:
27 Mar 2019, 17:56:17 (6 years ago)
Author:
Henrik Bettermann
Message:

First-year probating students are treated like fresh students.

File:
1 edited

Legend:

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

    r15360 r15372  
    175175                            u'Session configuration object is not available.'
    176176                            ), None
    177                     if local(student):
    178                         amount = getattr(certificate, 'school_fee_2', 0.0)
    179                     else:
    180                         amount = getattr(certificate, 'school_fee_4', 0.0)
     177                    if p_level in (100, 110, 120, 130):
     178                        # First-year probating students are treated like
     179                        # fresh students.
     180                        if local(student):
     181                            amount = getattr(certificate, 'school_fee_1', 0.0)
     182                        else:
     183                            amount = getattr(certificate, 'school_fee_3', 0.0)
     184                    else:
     185                        if local(student):
     186                            amount = getattr(certificate, 'school_fee_2', 0.0)
     187                        else:
     188                            amount = getattr(certificate, 'school_fee_4', 0.0)
    181189                elif student.is_postgrad and student.state == PAID:
    182190                    # Returning postgraduate students also pay for the
Note: See TracChangeset for help on using the changeset viewer.