diff --git a/lib/aca_entities/atp/functions/build_application.rb b/lib/aca_entities/atp/functions/build_application.rb index c64dfeb9d..4caab6a9f 100644 --- a/lib/aca_entities/atp/functions/build_application.rb +++ b/lib/aca_entities/atp/functions/build_application.rb @@ -283,12 +283,11 @@ def referral_status def tax_returns_hash applicant_is_primary_tax_filer = @tax_return.nil? ? nil : @tax_return[:tax_household][:primary_tax_filer][:role_reference][:ref] == @applicant_identifier tax_dependents = @tax_return.nil? ? nil : @tax_return[:tax_household][:tax_dependents].collect { |a| a[:role_reference][:ref] } - #check on this section is_tax_filer = if !@tax_return.nil? && @tax_return[:tax_household] if applicant_is_primary_tax_filer true else - @tax_return[:tax_household][:spouse_tax_filer][:role_reference][:ref] == @applicant_identifier # check on this line, test role_reference/ref + @tax_return[:tax_household][:spouse_tax_filer][:role_reference][:ref] == @applicant_identifier end else false