-
Notifications
You must be signed in to change notification settings - Fork 381
Update 1042-S and 1099-NEC templates #1595
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,7 @@ def form_fields_for(tax_form_copy) | |
| page_number = tax_form_copy == "A" ? "1" : "2" | ||
|
|
||
| result = { | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].Copy#{tax_form_copy}Header[0].CalendarYear[0].f#{page_number}_1[0]" => formatted_tax_year, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].CopyHeader[0].CalendarYear[0].f#{page_number}_1[0]" => tax_year.to_s, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| # Payer information | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_2[0]" => payer_details, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_3[0]" => payer_tin, | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| # frozen_string_literal: true | ||
|
|
||
| class TaxDocuments::Form1099necSerializer < TaxDocuments::BaseSerializer | ||
| TAX_FORM_COPIES = %w[A 1 B 2 C].freeze | ||
| TAX_FORM_COPIES = %w[A 1 B 2].freeze | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Copy C no longer exist |
||
|
|
||
| def attributes | ||
| TAX_FORM_COPIES.each_with_object({}) do |tax_form_copy, result| | ||
|
|
@@ -10,32 +10,21 @@ def attributes | |
| end | ||
|
|
||
| private | ||
| def header_for(tax_form_copy) | ||
| case tax_form_copy | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| when "A" | ||
| "Pg" | ||
| when "2" | ||
| "CopyC" | ||
| else | ||
| "Copy#{tax_form_copy}" | ||
| end | ||
| end | ||
|
|
||
| def form_fields_for(tax_form_copy) | ||
| page_number = tax_form_copy == "A" ? "1" : "2" | ||
|
|
||
| { | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].#{header_for(tax_form_copy)}Header[0].CalendarYear[0].f#{page_number}_1[0]" => tax_year.to_s.last(2), | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].PgHeader[0].CalendarYear[0].f#{page_number}_1[0]" => tax_year.to_s, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| # Payer information | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_2[0]" => payer_details, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_3[0]" => payer_tin, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_2[0]" => payer_details, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_3[0]" => payer_tin, | ||
| # Recipient information | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_4[0]" => formatted_recipient_tin, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_5[0]" => normalized_tax_field(billing_entity_name), | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_6[0]" => normalized_street_address, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftColumn[0].f#{page_number}_7[0]" => normalized_tax_field(full_city_address), | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_4[0]" => formatted_recipient_tin, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_5[0]" => normalized_tax_field(billing_entity_name), | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_6[0]" => normalized_street_address, | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].LeftCol[0].f#{page_number}_7[0]" => normalized_tax_field(full_city_address), | ||
| # Nonemployee compensation | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].RightColumn[0].f#{page_number}_9[0]" => compensation_amount_for_tax_year(tax_year), | ||
| "topmostSubform[0].Copy#{tax_form_copy}[0].RightCol[0].f#{page_number}_9[0]" => compensation_amount_for_tax_year(tax_year), | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| } | ||
| end | ||
|
|
||
|
|
||






Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the new template
LeftColchanged toLeftColumnandRightColchanged toRightColumn. Andf1_31moved fromLeftColumntoRightColumn