Ignore:
Timestamp:
11 Nov 2022, 16:35:04 (23 months ago)
Author:
Henrik Bettermann
Message:

Second instalment can be paid in all states

File:
1 edited

Legend:

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

    r17107 r17160  
    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.34 * getattr(certificate, 'school_fee_1', 0.0)
     88                    else:
     89                        amount = 0.34 * getattr(certificate, 'school_fee_2', 0.0)
    8490                if student.state == CLEARED:
    8591                    amount = getattr(certificate, 'school_fee_1', 0.0)
     
    107113                            u'Session configuration object is not available.'
    108114                            ), None                   
    109                    
    110                 if category == 'secondinstal':
    111                     amount *= 0.34
    112                 elif category == 'schoolfee_1':
     115                if category == 'schoolfee_1':
    113116                    amount *= 0.66
    114117        elif category == 'clearance':
Note: See TracChangeset for help on using the changeset viewer.