Tax computation: a tax_excluded 922 expense is adjusted through both the §20A R&D spread and yearlyRndExcludedRnd
メンテナーはふだん 2 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 22/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- backend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- TypeScript
- スター
- 30
- フォーク
- 10
- 平均マージ
- 2日 12時間
- マージ済み PR(30日)
- 276
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Urigo/accounter-fullstack のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
Urigo/accounter-fullstack#5302 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Urigo/accounter-fullstack#5257 ·
メンテナーはふだん 2 日以内に返信
-
1214 annual-audit-workflow
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#5256 ·
メンテナーはふだん 2 日以内に返信
-
annual-audit-workflow
難易度 1/5 1〜3時間 初心者へのやさしさ 87/100
Urigo/accounter-fullstack#5252 ·
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
Urigo/accounter-fullstack#4919 ·
メンテナーはふだん 2 日以内に返信
Urigo/accounter-fullstack の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
tashfeenahmed/freellmapi#2217 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
remotion-dev/skills#37 ·
-
gui: a narrow window's gateway key row with a line under it wraps its faded badges onto blank linesオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsオープン
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vercel-labs/ui#1758 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
nicobailon/pi-subagents#3425 ·
メンテナーはふだん 1 日以内に返信