-
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-1631 1099R subtractable calculations + PDF/XML #5576
Merged
arinchoi03
merged 8 commits into
main
from
FYST-1631-az-140-line-29-a-government-pension-subtraction
Feb 13, 2025
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c60b127
Move sum_1099_r_followup_type_for_filer & filer_1099_rs methods to ba…
arinchoi03 b3d3fd1
Update 29A calculations
arinchoi03 6cb630e
Update specs for filling out az return xml
arinchoi03 f48ba1b
Add test for 29a pdf filling
arinchoi03 79356d6
Update 29B calculations
arinchoi03 0012c32
Add specs on xml/pdf
arinchoi03 ea21597
Fix line data keys
arinchoi03 828a38f
Merge remote-tracking branch 'origin' into FYST-1631-az-140-line-29-a…
arinchoi03 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -257,4 +257,60 @@ | |
end | ||
end | ||
end | ||
|
||
describe "#sum_1099_r_followup_type_for_filer" do | ||
|
||
context "with 1099Rs" do | ||
let!(:intake) { create(:state_file_md_intake, :with_spouse) } | ||
let!(:state_file_1099_r_without_followup) { | ||
create( | ||
:state_file1099_r, | ||
taxable_amount: 1_000, | ||
recipient_ssn: intake.primary.ssn, | ||
intake: intake) | ||
} | ||
let!(:state_file_md1099_r_followup_with_military_service_for_primary_1) do | ||
create( | ||
:state_file_md1099_r_followup, | ||
service_type: "military", | ||
state_file1099_r: create(:state_file1099_r, taxable_amount: 1_000, intake: intake, recipient_ssn: intake.primary.ssn) | ||
) | ||
end | ||
let!(:state_file_md1099_r_followup_with_military_service_for_primary_2) do | ||
create( | ||
:state_file_md1099_r_followup, | ||
service_type: "military", | ||
state_file1099_r: create(:state_file1099_r, taxable_amount: 1_500, intake: intake, recipient_ssn: intake.primary.ssn) | ||
) | ||
end | ||
let!(:state_file_md1099_r_followup_with_military_service_for_spouse) do | ||
create( | ||
:state_file_md1099_r_followup, | ||
service_type: "military", | ||
state_file1099_r: create(:state_file1099_r, taxable_amount: 2_000, intake: intake, recipient_ssn: intake.spouse.ssn) | ||
) | ||
end | ||
let!(:state_file_md1099_r_followup_without_military) do | ||
create( | ||
:state_file_md1099_r_followup, | ||
service_type: "none", | ||
state_file1099_r: create(:state_file1099_r, taxable_amount: 1_000, intake: intake, recipient_ssn: intake.spouse.ssn) | ||
) | ||
end | ||
|
||
it "totals the followup income" do | ||
expect(intake.sum_1099_r_followup_type_for_filer(:primary, :service_type_military?)).to eq(2_500) | ||
expect(intake.sum_1099_r_followup_type_for_filer(:spouse, :service_type_military?)).to eq(2_000) | ||
end | ||
end | ||
|
||
context "without 1099Rs" do | ||
let(:intake) { create(:state_file_md_intake) } | ||
it "returns 0" do | ||
expect(intake.sum_1099_r_followup_type_for_filer(:primary, :service_type_military?)).to eq(0) | ||
expect(intake.sum_1099_r_followup_type_for_filer(:spouse, :service_type_military?)).to eq(0) | ||
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. moved these tests over b/c the methods moved over from MD intake -> base intake |
||
end |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
simply moved over from state file md intake