Tax computation: a tax_excluded 922 expense is adjusted through both the §20A R&D spread and yearlyRndExcludedRnd
Maintainers usually reply within 2 days
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 22/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- typescript
- Domain
- backend
Research direction
Start in reports/helpers/profit-and-loss.helper.ts (getProfitLossReportAmounts, where sort code 922 is in the R&D range) and reports/helpers/tax.helper.ts (researchAndDevelopmentForTax, calculateCumulativeRnDExpenses, calculateTaxAmounts). Confirm the expected year-N adjustment with the accountant before changing anything. Done when a tax_excluded 922 expense is adjusted once, with no §20A spread, and tax.helper.test.ts covers it.
Written by the indexing model from the issue text.
Description
Area: server: reports/helpers/tax.helper.ts, reports/helpers/profit-and-loss.helper.ts
Part of #5085. Raised in review of PR #5095 (#5088); same pattern as the 931 bug.
Problem
Sort code 922 is in the P&L R&D range (getProfitLossReportAmounts), so a 922 expense in a tax_excluded tax category goes through two adjustment paths:
- R&D: it's in the yearly R&D add-back and in the §20A three-year spread (
calculateCumulativeRnDExpenses). yearlyRndExcludedRnd:calculateTaxAmountsadjusts it again and folds it intoresearchAndDevelopmentExpensesForTax.
According to the review, for an expense X in year N the tax adjustments are:
| Year | Today | Expected if never deductible |
|---|---|---|
| N | +2X/3 | a single, full adjustment, with no spread |
| N+1 | −X/3 | 0 |
| N+2 | −X/3 | 0 |
So part of the expense is still deducted, spread over three years. Confirm the intended treatment and the exact year-N figure with the accountant first.
Proposed fix
- Extend
researchAndDevelopmentForTax(added in #5095) to droptax_excluded922 entities. That takes them out of both the yearly R&D add-back and the spread. - Keep a single adjustment for them: either
yearlyRndExcludedRnd, with its sign and meaning checked, or a plain non-deductible add-back. - Decide whether this needs a cutover for years already filed, like the 2025 cutover in #5095.
Acceptance criteria
- One adjustment: a
tax_excluded922 expense is adjusted once, in year N, as the accountant confirms. - No spread: it doesn't appear in the §20A spread of N, N+1 or N+2.
- Consistent outputs: the tax report, the tax-expense charge and 6111 agree. They already share
calculateYearTax. - Tests: add cases to
tax.helper.test.ts.
- Dominant language
- TypeScript
- Stars
- 30
- Forks
- 10
- Avg merge
- 2d 12h
- Merged PRs (30d)
- 276
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from Urigo/accounter-fullstack
-
Difficulty 2/5 1-3 hours Newbie friendliness 73/100
Urigo/accounter-fullstack#5302 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Urigo/accounter-fullstack#5257 ·
Maintainers usually reply within 2 days
-
1214 annual-audit-workflow
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#5256 ·
Maintainers usually reply within 2 days
-
annual-audit-workflow
Difficulty 1/5 1-3 hours Newbie friendliness 87/100
Urigo/accounter-fullstack#5252 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
Urigo/accounter-fullstack#4919 ·
Maintainers usually reply within 2 days
All issues in Urigo/accounter-fullstack
Similar issues
-
area: integrations documentation priority: P2 size: XS
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
eddiejaoude/StackDash#798 ·
Maintainers usually reply within 1 day
-
bot:ai-assisted component:midnight-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
midnightntwrk/midnight-js#1790 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
area:vscode bug has repro platform:macos platform:vscode regression
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
anthropics/claude-code#113502 ·
-
Add: Rajdhani TV HDOpencheck:passed streams:add
Difficulty 1/5 Under an hour Newbie friendliness 77/100
Maintainers usually reply within 1 day