Changeset 17381 for main


Ignore:
Timestamp:
17 Apr 2023, 08:48:33 (17 months ago)
Author:
Henrik Bettermann
Message:

Different ratios for fresh and returning students.

File:
1 edited

Legend:

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

    r17380 r17381  
    8282                amount = getattr(certificate, 'school_fee_2', 0.0)
    8383            else:
    84                 # Second instalment can be paid in all states.
    85                 if category == 'secondinstal':
    86                     if student.is_fresh:
    87                         amount = 0.305 * getattr(certificate, 'school_fee_1', 0.0)
    88                     else:
    89                         amount = 0.305 * getattr(certificate, 'school_fee_2', 0.0)
    9084                if student.state == CLEARED:
    9185                    amount = getattr(certificate, 'school_fee_1', 0.0)
     
    114108                            ), None                   
    115109                if category == 'schoolfee_1':
    116                     amount *= 0.695
     110                    if student.is_fresh:
     111                        amount *= 0.695
     112                    else:
     113                        amount *= 0.622
     114                # Second instalment can be paid in all states.
     115                if category == 'secondinstal':
     116                    if student.is_fresh:
     117                        amount = 0.305 * getattr(certificate, 'school_fee_1', 0.0)
     118                    else:
     119                        amount = 0.378 * getattr(certificate, 'school_fee_2', 0.0)
    117120        elif category == 'clearance':
    118121            try:
Note: See TracChangeset for help on using the changeset viewer.