-
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 823 income documents ID state tax withheld #4933
Fyst 823 income documents ID state tax withheld #4933
Conversation
…hing breaks with this invalid syntax
Heroku app: https://gyr-review-app-4933-5563e432acb5.herokuapp.com/ |
@@ -153,7 +153,7 @@ | |||
<W2StateLocalTaxGrp> | |||
<W2StateTaxGrp> | |||
<StateAbbreviationCd>ID</StateAbbreviationCd> | |||
<EmployerStateIdNum>00-0000005</EmployerStateIdNum> | |||
<EmployerStateIdNum>000000005</EmployerStateIdNum> |
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.
w2 sync was failing for this fixture b/c -
was included and w2 employer_ein
was failing validation
validates :employer_state_id_num, format: { with: /\A(\d{0,17})\z/, message: ->(_object, _data) { I18n.t('state_file.questions.w2.edit.employer_state_id_error') } }
…nce synching breaks with this invalid syntax" This reverts commit 5eafe61.
@@ -124,7 +124,7 @@ def synchronize_df_w2s_to_database | |||
employer_name: direct_file_w2.EmployerName, | |||
employee_name: direct_file_w2.EmployeeNm, | |||
employee_ssn: direct_file_w2.EmployeeSSN, | |||
employer_state_id_num: direct_file_w2.EmployerStateIdNum, | |||
employer_state_id_num: direct_file_w2.EmployerStateIdNum&.delete('-'), |
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.
miranda_1099r
fixture has a dash in the EmployerStateIdNum
. According to schema i think this is a valid character. However, since we validate this field (employer_state_id_num
) on save to the database, we should remove any hyphens/dashes.
added a computer gardening seed if we should fail more loudly at Data transfer if errors raise (on non-prod environments; so that we can tell if a fixture has an issue sync'ing)
@@ -52,8 +52,6 @@ def supported_documents | |||
} | |||
end | |||
|
|||
supported_docs += form1099rs | |||
supported_docs += form1099gs |
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.
…i-da-state-tax-withheld
Link to pivotal/JIRA issue
Is PM acceptance required? (delete one)
Reminder: merge main into this branch and get green tests before merging to main
What was done?
calculate_line_53
method inaz_calculator.rb
How to test?
Describe the testing approach taken to verify the changes, including:
Risk Assessment
miranda_1099R
had errors on XML outputsynchronize_filers_to_database
had not run b/csynchronize_w2s_to_database
step that comes before had silently failed due to validation onemployer_state_id_num
field requiring no dashes. Fixed hereScreenshots (for visual changes)