Skip to content

Commit

Permalink
Add Form specificity when accessing XML values
Browse files Browse the repository at this point in the history
  • Loading branch information
arinchoi03 committed Nov 7, 2024
1 parent 8ab30e8 commit bb9c4e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/lib/pdf_filler/id39r_pdf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ def initialize(submission)

def hash_for_pdf
answers = {
"AL7" => @xml_document.at('TotalAdditions')&.text,
"BL3" => @xml_document.at('IncomeUSObligations')&.text,
"BL6" => @xml_document.at('ChildCareCreditAmt')&.text,
"BL7" => @xml_document.at('TxblSSAndRRBenefits')&.text,
"BL8f" => @xml_document.at('RetirementBenefitsDeduction')&.text,
"BL18" => @xml_document.at('HealthInsurancePaid')&.text,
"BL24" => @xml_document.at('TotalSubtractions')&.text,
"AL7" => @xml_document.at('Form39R TotalAdditions')&.text,
"BL3" => @xml_document.at('Form39R IncomeUSObligations')&.text,
"BL6" => @xml_document.at('Form39R ChildCareCreditAmt')&.text,
"BL7" => @xml_document.at('Form39R TxblSSAndRRBenefits')&.text,
"BL8f" => @xml_document.at('Form39R RetirementBenefitsDeduction')&.text,
"BL18" => @xml_document.at('Form39R HealthInsurancePaid')&.text,
"BL24" => @xml_document.at('Form39R TotalSubtractions')&.text,
}
@submission.data_source.dependents.drop(4).first(3).each_with_index do |dependent, index|
answers.merge!(
Expand Down

0 comments on commit bb9c4e4

Please sign in to comment.