Skip to content
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

FYST-1880 Add recipients address to 1099R #5663

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

jenny-heath
Copy link
Contributor

Link to pivotal/JIRA issue

Is PM acceptance required? (delete one)

  • Yes - don't merge until JIRA issue is accepted!

Reminder: merge main into this branch and get green tests before merging to main

What was done?

  • carry the recipient address over from fed xml to state xml
  • adds columns for these attributes to state_file1099_r
  • practically, this will only apply to AZ and MD because the other states don't include it in the fed xml

How to test?

  • unit spec for model method synchronize_df_1099_rs_to_database
  • unit spec for 1099r xml builder

Screenshots (for visual changes)

  • Before
  • After
image

Copy link

Heroku app: https://gyr-review-app-5663-5c6c4cc7356a.herokuapp.com/
View logs: heroku logs --app gyr-review-app-5663 (optionally add --tail)

Copy link
Contributor

@arinchoi03 arinchoi03 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

one question but otherwise looks great!

@@ -23,6 +23,15 @@ def document
xml.PayerEIN form1099r.payer_identification_number
xml.RecipientSSN sanitize_for_xml(form1099r.recipient_ssn) if form1099r.recipient_ssn.present?
xml.RecipientNm sanitize_for_xml(form1099r.recipient_name) if form1099r.recipient_name.present?
if form1099r.recipient_address_line1.present?
xml.RecipientUSAddress do
xml.AddressLine1Txt sanitize_for_xml(form1099r.recipient_address_line1) if form1099r.recipient_address_line1.present?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this .present? check seems redundant b/c it's already on line 26

@@ -23,6 +23,15 @@ def document
xml.PayerEIN form1099r.payer_identification_number
xml.RecipientSSN sanitize_for_xml(form1099r.recipient_ssn) if form1099r.recipient_ssn.present?
xml.RecipientNm sanitize_for_xml(form1099r.recipient_name) if form1099r.recipient_name.present?
if form1099r.recipient_address_line1.present?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I wonder about this check -- is it possible that line 1 will be empty but rest of the address present?

Do we only want to pass on the info if the line 1 is present?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants