lib/train/tax/calculator.rb in train-tax-calculator-2.2.6 vs lib/train/tax/calculator.rb in train-tax-calculator-2.3.0
- old
+ new
@@ -13,10 +13,10 @@
hash = Hash.new
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[:total_deductions] = Deductions.compute(basic_salary)
hash[:withholding_tax] = WithholdingTax.compute(basic_salary)
hash[:net_income] = (basic_salary - hash[:withholding_tax]).round(2)
hash
end