Ignore:
Timestamp:
22 May 2023, 14:21:22 (18 months ago)
Author:
Henrik Bettermann
Message:

Fix second installment payment.

File:
1 edited

Legend:

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

    r17414 r17415  
    114114                # Second instalment can be paid in all states.
    115115                if category == 'secondinstal':
    116                     if student.is_fresh:
     116                    if not student.is_fresh or student.state == RETURNING:
     117                        amount =  round(0.37837838 * getattr(certificate, 'school_fee_2', 0.0))
     118                    else:
    117119                        amount =  round(0.30681818 * getattr(certificate, 'school_fee_1', 0.0))
    118                     else:
    119                         amount =  round(0.37837838 * getattr(certificate, 'school_fee_2', 0.0))
    120120        elif category == 'clearance':
    121121            try:
Note: See TracChangeset for help on using the changeset viewer.