-
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 789/add child credit xml pdf #4903
Merged
Merged
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
bbac16e
First pass at xml part
powersurge360 0da1f60
Added PDF support
powersurge360 a1b2ea7
PDF specs
powersurge360 7452a84
Added calculator and xml specs
powersurge360 0b5af94
Added line to line_data.yml
powersurge360 42d110e
Merge branch 'main' into FYST-789/add-child-credit-xml-pdf
powersurge360 8ec6a05
File conflict
powersurge360 5e50ba2
Corrected some submission tests
powersurge360 1212fef
Reader/writer consolidation
powersurge360 04f3874
More test corrections
powersurge360 c29788a
Needed to change personas
powersurge360 d7f5a57
Merge branch 'main' into FYST-789/add-child-credit-xml-pdf
powersurge360 e7d26ea
Corrected minor merge error
powersurge360 d7a0887
Corrected some failing tests
powersurge360 01fe44f
Merge branch 'main' into FYST-789/add-child-credit-xml-pdf
powersurge360 4172628
More fixes
powersurge360 75a7630
Final adjustments for tests I think
powersurge360 0d528cb
Line fix
powersurge360 e41f546
Merge branch 'main' into FYST-789/add-child-credit-xml-pdf
powersurge360 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
module Efile | ||
module Id | ||
class Id39rCalculator < ::Efile::TaxCalculator | ||
attr_reader :lines | ||
|
||
def initialize(value_access_tracker:, lines:, intake:, year:) | ||
super(intake: intake, year: year) | ||
|
||
@value_access_tracker = value_access_tracker | ||
@lines = lines | ||
@intake = intake | ||
@direct_file_data = intake.direct_file_data | ||
end | ||
|
||
def calculate | ||
set_line(:ID39R_B_LINE_6, :calculate_line_b_6) | ||
end | ||
|
||
def calculate_line_b_6 | ||
[ | ||
@direct_file_data.total_qualifying_dependent_care_expenses, | ||
[12_000 - @direct_file_data.excluded_benefits_amount, 0].max, | ||
@direct_file_data.primary_earned_income_amount, | ||
@direct_file_data.spouse_earned_income_amount, | ||
].min | ||
end | ||
end | ||
end | ||
end |
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 |
---|---|---|
|
@@ -58,4 +58,4 @@ def supported_documents | |
end | ||
end | ||
end | ||
end | ||
end |
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 |
---|---|---|
|
@@ -54,4 +54,4 @@ | |
populateSubdivisions(countySelect.value); | ||
}); | ||
</script> | ||
<% end %> | ||
<% end %> |
Empty file.
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
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.
@powersurge360 how come you included the
Form39R
here, as opposed to the other selectorsIncomeUSObligations
andHealthInsurancePaid
fields?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 don't think you strictly need it if there is only one particular
ChildCareCreditAmt
. I mostly did it for clarity and specificity I suppose.