lib/train/tax/calculator.rb in train-tax-calculator-2.3.2 vs lib/train/tax/calculator.rb in train-tax-calculator-3.0.0

- old
+ new

@@ -12,14 +12,14 @@ def self.call(basic_salary) return 0.00 if basic_salary <= 0 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.compute(basic_salary) - hash[:withholding_tax] = WithholdingTax.compute(basic_salary) + hash[:sss] = Sss.(basic_salary) + hash[:pagibig] = Pagibig.(basic_salary) + hash[:philhealth] = Philhealth.(basic_salary) + hash[:total_deductions] = Deductions.(basic_salary) + hash[:withholding_tax] = WithholdingTax.(basic_salary) hash[:net_income] = (basic_salary - hash[:withholding_tax]).round(2) hash end