Module: SingaporeCPFCalculator::SPR1GGCommon
- Included in:
- Year2014::SPR1GG, Year2015::SPR1GG, Year2016::SPR1GG, Year2022::SPR1GG
- Defined in:
- lib/singapore_cpf_calculator/spr_1_gg_common.rb
Overview
Contains the calculators that are used for determining CPF contribution for 2014.
Instance Method Summary collapse
Instance Method Details
#applies_to?(status:, current_date:, spr_start_date:, employee_contribution_type:, employer_contribution_type:) ⇒ true, false
12 13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/singapore_cpf_calculator/spr_1_gg_common.rb', line 12 def applies_to?( status:, current_date:, spr_start_date:, employee_contribution_type:, employer_contribution_type: ) status == "permanent_resident" && SPRStatus.get(current_date, status_start_date: spr_start_date) == :SPR1 && employee_contribution_type == "graduated" && employer_contribution_type == "graduated" end |