-
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-843 Implement MD502R XML/PDF Part 2: disability, retirement/pension income #5489
Changes from all commits
db52884
b4fda28
3ec7133
ee3ace0
244a5d3
3aabfb0
0a5d95c
b2c25e8
1bb8d61
ada8c63
d6cc3c7
ca02f3e
4509b60
61e627d
ae47ae1
d70486b
8bf0b1c
72b1216
40a094b
ceae37a
29bd64b
ffb3280
09f842d
4cb7407
3940610
491d249
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 |
---|---|---|
|
@@ -211,6 +211,22 @@ def address | |
end | ||
end | ||
|
||
def filer_1099_rs(primary_or_spouse) | ||
state_file1099_rs.filter do |state_file_1099_r| | ||
state_file_1099_r.recipient_ssn == send(primary_or_spouse).ssn | ||
end | ||
end | ||
|
||
def sum_1099_r_followup_type_for_filer(filer_1099_rs, followup_type) | ||
filer_1099_rs.sum do |state_file_1099_r| | ||
if state_file_1099_r.state_specific_followup&.send(followup_type) | ||
state_file_1099_r.taxable_amount&.round | ||
else | ||
0 | ||
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. there was no strict requirement that if a Since handling |
||
end | ||
end | ||
end | ||
|
||
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. these methods were added to the intake b/c other calculators will need this logic as well |
||
def extract_apartment_from_mailing_street? | ||
true | ||
end | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,6 +10,5 @@ | |
# | ||
FactoryBot.define do | ||
factory :state_file_md1099_r_followup do | ||
|
||
end | ||
end |
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.
do we need to pass in the
filer_1099_rs
here? or instead should we pass in primary or 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.
ooh we can pass in the
primary_or_spouse
here and call thefiler_1099_rs
method from within this method!