Skip to content

Commit

Permalink
fix spouse tax filer check
Browse files Browse the repository at this point in the history
  • Loading branch information
ATBull81 committed Apr 15, 2024
1 parent d10013b commit 718e193
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/aca_entities/atp/functions/build_application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] }

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] == @applicant_identifier
@tax_return[:tax_household][:spouse_tax_filer][:role_reference][:ref] == @applicant_identifier
end
else
false
Expand Down

0 comments on commit 718e193

Please sign in to comment.