Fix LA non-refundable CDCC to use claimed federal credit#7685
Fix LA non-refundable CDCC to use claimed federal credit#7685
Conversation
Update comment in la_non_refundable_cdcc.py to correctly document that the non-refundable tier (AGI > $25,000) uses cdcc (the actual claimed credit after the IRC §26 tax liability cap), per RS 47:297.4(B) which references the credit "claimed on the resident individual's federal tax return." This contrasts with the refundable tier which explicitly uses cdcc_potential per RS 47:297.4(A)'s "without regard to whether they claimed such federal credit" language. Closes #7680 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 #7685 +/- ##
===========================================
+ Coverage 97.82% 100.00% +2.17%
===========================================
Files 3 1 -2
Lines 92 19 -73
Branches 2 0 -2
===========================================
- Hits 90 19 -71
+ Misses 1 0 -1
+ 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:
|
PR Review🔴 Critical (Must Fix)None - this is a documentation-only PR. 🟡 Should Address
🟢 Suggestions
Validation Summary
Regulatory VerificationThe updated comment is accurate: RS 47:297.4(B) (non-refundable tier, AGI > $25,000):
The word "claimed" means the actual credit after IRC § 26 tax liability limitation = RS 47:297.4(A) (refundable tier, AGI ≤ $25,000):
This explicitly opts out of the tax liability cap = The comment correctly explains this distinction. Change SummaryThis PR only:
No code logic changes - the fix from 🤖 Review generated by Claude Code |
Summary
The Louisiana non-refundable CDCC (
la_non_refundable_cdcc) previously usedcdcc_potentialinstead ofcdccas the federal credit base. This was corrected in commit d9c7ddf, but the in-code comment still said "Louisiana matches the potential federal credit" — which is now incorrect and contradicts the code.This PR:
cdcc(notcdcc_potential) is correct for the non-refundable tierchangelog.d/fragment (the original fix used the deprecatedchangelog_entry.yamlformat)Statutory basis
RS 47:297.4(B) (non-refundable tier, AGI > $25,000) references the credit "claimed on the resident individual's federal tax return." The word claimed means the actual credit after the IRC § 26 tax liability limitation — i.e.,
cdcc, notcdcc_potential.This contrasts with the refundable tier in
la_refundable_cdcc.py, which correctly usescdcc_potentialbecause RS 47:297.4(A) explicitly says "without regard to whether they claimed such federal credit" — opting out of the IRC § 26 cap.Closes #7680