Ignore:
Timestamp:
17 Apr 2023, 09:10:17 (21 months ago)
Author:
Henrik Bettermann
Message:

And round

File:
1 edited

Legend:

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

    r17382 r17383  
    109109                if category == 'schoolfee_1':
    110110                    if student.is_fresh:
    111                         amount *= 0.695
     111                        amount =  round(0.69318182 * amount)
    112112                    else:
    113                         amount *= 0.621621621
     113                        amount *= round(0.62162162 * amount)
    114114                # Second instalment can be paid in all states.
    115115                if category == 'secondinstal':
    116116                    if student.is_fresh:
    117                         amount = 0.305 * getattr(certificate, 'school_fee_1', 0.0)
     117                        amount =  round(0.30681818 * getattr(certificate, 'school_fee_1', 0.0))
    118118                    else:
    119                         amount = 0.378378378 * getattr(certificate, 'school_fee_2', 0.0)
     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.