-
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 1798 use df json data for mfj ssa income #5636
base: main
Are you sure you want to change the base?
Conversation
Heroku app: https://gyr-review-app-5636-aa6902403ed4.herokuapp.com/ |
@@ -112,6 +110,9 @@ | |||
# | |||
class StateFileMdIntake < StateFileBaseIntake | |||
include MdResidenceCountyConcern | |||
|
|||
self.ignored_columns += %w[primary_ssb_amount spouse_ssb_amount] |
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.
[q] this is data that clients self-reported. we can't really "backfill" this data back into the json files, so do we just keep it forever indefinitely? Or is it really fine to drop these columns?
private | ||
|
||
def social_security_benefit_amount_for(filer) | ||
social_security_reports.filter { |social_security_report| social_security_report.recipient_tin == filer.tin }.sum(&:net_benefits) |
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.
sorry this is on my mind, but is there any likelihood at all we could get a null
for the net_benefits
amount?
if @intake.filing_status_mfj? && @intake.direct_file_data.fed_ssb.positive? && @intake.spouse_ssb_amount.present? | ||
@intake.spouse_ssb_amount.round | ||
if @intake.filing_status_mfj? && @intake.direct_file_data.fed_ssb.positive? | ||
@intake.direct_file_json_data.spouse_filer_social_security_benefit_amount&.round |
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.
[dust] just noticing that calculate_line_9a
returns 0
if the amount is nilbut
calculate_line_9breturns
nilif it's nil, probably should choose one or the other, although it'll end up in the same place since this ultimately uses
add_element_if_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.
looks good but just one q about keeping the self-reported data
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?
state_file_md_intakes
How to test?
socialSecurityReports
in their DF JSON. Verify that the output XML & PDF have the correct social security benefit amounts for the primary and spouse filers.