Include partnership/S-corp losses in loss_ald#7463
Open
PavelMakarchuk wants to merge 3 commits intomainfrom
Open
Include partnership/S-corp losses in loss_ald#7463PavelMakarchuk wants to merge 3 commits intomainfrom
PavelMakarchuk wants to merge 3 commits intomainfrom
Conversation
Partnership and S-corp losses (negative partnership_s_corp_income) were not being recovered via the business loss above-the-line deduction, silently inflating AGI. Add these losses alongside existing self-employment losses, subject to the same §461(l) excess business loss cap. Closes #7461 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…prove tests - Fix dc_self_employment_loss_addition to subtract partnership/S-corp losses when isolating the SE portion of loss_ald (prevents overstating DC addition) - Update loss_ald reference from §165 to §461(l) and §461(l)(4) - Rename tests to Case N convention with person1 naming - Add tests: joint filing cap, mixed positive/negative across people, capital loss interaction Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The test has large negative partnership_s_corp_income. Now that loss_ald correctly recovers these losses (capped at $610K joint), the expected AGI changes from -$3K to -$610K. Credit output unchanged. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #7463 +/- ##
============================================
+ Coverage 70.60% 100.00% +29.39%
============================================
Files 3896 2 -3894
Lines 56278 48 -56230
Branches 277 0 -277
============================================
- Hits 39735 48 -39687
+ Misses 16542 0 -16542
+ Partials 1 0 -1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
partnership_s_corp_incomelosses to theloss_aldbusiness loss above-the-line deduction, alongside existing self-employment and capital lossespartnership_s_corp_incomewas clipped to zero inirs_gross_incomebut never recovered vialoss_ald, silently inflating AGITest plan
loss_ald: S-Corp loss only, combined SE+S-Corp losses, losses exceeding §461(l) cap, positive S-Corp income, and no lossesCloses #7461
🤖 Generated with Claude Code