-
Notifications
You must be signed in to change notification settings - Fork 13
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 1724 NC and NJ to include NRA status in state xml if present on df xml #5486
FYST 1724 NC and NJ to include NRA status in state xml if present on df xml #5486
Conversation
Heroku app: https://gyr-review-app-5486-99a5be932233.herokuapp.com/ |
"no1099Amount": null | ||
} | ||
] | ||
} |
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.
this persona was added after a conversation with tiffany to test on demo
@@ -393,9 +393,22 @@ | |||
|
|||
context "AZ intake" do | |||
let(:intake) { create(:state_file_az_intake,) } | |||
let(:submission) { create(:efile_submission, data_source: intake) } | |||
let(:doc) { SubmissionBuilder::ReturnHeader.new(submission).document } | |||
it "does not include disaster relief xml" do |
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.
this test was not properly testing the xml itself before. Its unrelated to the story
@@ -43,15 +43,20 @@ def document | |||
xml.DateSigned date_type_for_timezone(@submission.data_source.primary_esigned_at)&.strftime("%F") if @submission.data_source.primary_esigned_yes? | |||
xml.USPhone @submission.data_source.direct_file_data.phone_number if @submission.data_source.direct_file_data.phone_number.present? | |||
end | |||
if @submission.data_source&.spouse&.ssn.present? && @submission.data_source&.spouse&.first_name.present? && [email protected]_status_mfs? | |||
has_nra_spouse = @intake.check_nra_status? && @intake.direct_file_data.non_resident_alien == "NRA" && @intake.filing_status_mfs? | |||
if @submission.data_source&.spouse&.ssn.present? && @submission.data_source&.spouse&.first_name.present? && ([email protected]_status_mfs? || has_nra_spouse) |
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.
will @submission.data_source
ever return nil
? I think we can remove the first &
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.
with this addition, when the filer is filing_status_mfs
&& has_nra_spouse
-- we are also newly including the TaxPayerName
, DateOfBirth
, TaxPayerPIN
etc information with the xml. Just making sure that that's a change that prod is expecting and should not be a source of issue downstream
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.
super good question! talked with tiffany we should include the fields. Things like PIN wont be included in a mfs filing anyways
xml.TaxpayerSSN @submission.data_source.spouse.ssn if @submission.data_source.spouse.ssn.present? | ||
if has_nra_spouse | ||
xml.NRALiteralCd "NRA" | ||
elsif @submission.data_source.spouse.ssn.present? |
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.
does this need to be @submission.data_source.spouse&.ssn&.present?
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.
probably not because its after if @submission.data_source.spouse&.ssn&.present? so maybe its redundant?
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.
o yea
Link to pivotal/JIRA issue
https://codeforamerica.atlassian.net/browse/FYST-1724
Is PM acceptance required? (delete one)
What was done?
How to test?
Screenshots (for visual changes)