lib/train/tax/calculator.rb in train-tax-calculator-2.2.4 vs lib/train/tax/calculator.rb in train-tax-calculator-2.2.5
- old
+ new
@@ -15,10 +15,10 @@
hash[:sss] = Sss.compute_employee_share(basic_salary)
hash[:pagibig] = Pagibig.compute(basic_salary)
hash[:philhealth] = Philhealth.compute(basic_salary)
hash[:total_deductions] = Deductions.get(basic_salary)
hash[:withholding_tax] = WithholdingTax.compute(basic_salary)
- hash[:net_income] = basic_salary - hash[:withholding_tax]
+ hash[:net_income] = (basic_salary - hash[:withholding_tax]).round(2)
hash
end
end