Skip to content

Commit

Permalink
Revert "[FYST-1865] add 1099_int to md and az" (#5712)
Browse files Browse the repository at this point in the history
  • Loading branch information
arinchoi03 authored Mar 10, 2025
1 parent f71a07b commit 3333985
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 35 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ def supported_documents
supported_docs += combined_w2s
supported_docs += form1099rs
supported_docs += form1099gs
supported_docs += form1099ints
supported_docs
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,6 @@ def supported_documents
supported_docs += form1099gs # must be sequenced here
supported_docs += combined_w2s
supported_docs += form1099rs
supported_docs += form1099ints
supported_docs
end

Expand Down
15 changes: 0 additions & 15 deletions spec/lib/submission_builder/ty2022/states/az/az_return_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -266,21 +266,6 @@
end
end

context "when there are 1099_ints present" do
let(:intake) { create(:state_file_az_intake, :df_data_1099_int) }

it "generates XML with 1099_int info" do
expect(xml.css('State1099Int').count).to eq 1
expect(xml.at('State1099Int PayerName BusinessNameLine1Txt').text).to eq 'Mockingbird Bank'
expect(xml.at('State1099Int RecipientSSN').text).to eq '900500011'
expect(xml.at('State1099Int RecipientName').text).to eq 'Ariz Onian'
expect(xml.at('State1099Int InterestIncome').text).to eq '4000.0'
expect(xml.at('State1099Int InterestOnBondsAndTreasury').text).to eq '0'
expect(xml.at('State1099Int FederalTaxWithheld').text).to eq '0.0'
expect(xml.at('State1099Int TaxExemptInterest').text).to eq '0'
end
end

context "subtractions" do
let(:intake) { create(:state_file_az_intake, :df_data_1099_int) }

Expand Down
18 changes: 0 additions & 18 deletions spec/lib/submission_builder/ty2024/states/md/md_return_xml_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -88,24 +88,6 @@
allow(instance).to receive(:form_has_non_zero_amounts) # allows mocking of specific arguments when the file calls with multiple combinations of args
end

context "when there are 1099_ints present" do
let(:intake) { create(:state_file_md_intake, :df_data_1099_int) }

it "generates XML with 1099_int info" do
expect(xml.css('State1099Int').count).to eq 1
expect(xml.at('State1099Int PayerName BusinessNameLine1Txt').text).to eq 'The payer name'
expect(xml.at('State1099Int PayerName')['payerNameControl']).to eq 'THEP'
expect(xml.at('State1099Int PayerEIN').text).to eq '101234567'
expect(xml.at('State1099Int RecipientSSN').text).to eq '123456789'
expect(xml.at('State1099Int RecipientName').text).to eq 'Mary A Lando'
expect(xml.at('State1099Int InterestIncome').text).to eq '1.0'
expect(xml.at('State1099Int InterestOnBondsAndTreasury').text).to eq '2.0'
expect(xml.at('State1099Int FederalTaxWithheld').text).to eq '5.0'
expect(xml.at('State1099Int TaxExemptInterest').text).to eq '4.0'
expect(xml.at('State1099Int TaxExemptCUSIP').text).to eq '123456789'
end
end

it "includes documents that are always attached" do
expect(xml.document.at('ReturnDataState Form502')).to be_an_instance_of Nokogiri::XML::Element
expect(instance.pdf_documents).to be_any { |included_documents|
Expand Down

0 comments on commit 3333985

Please sign in to comment.