Tax computation: a tax_excluded 922 expense is adjusted through both the §20A R&D spread and yearlyRndExcludedRnd

Aperta
#5,175 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
22/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
backend

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

annual-audit-workflow bug

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:

  1. R&D: it's in the yearly R&D add-back and in the §20A three-year spread (calculateCumulativeRnDExpenses).
  2. yearlyRndExcludedRnd: calculateTaxAmounts adjusts it again and folds it into researchAndDevelopmentExpensesForTax.

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

  1. Extend researchAndDevelopmentForTax (added in #5095) to drop tax_excluded 922 entities. That takes them out of both the yearly R&D add-back and the spread.
  2. Keep a single adjustment for them: either yearlyRndExcludedRnd, with its sign and meaning checked, or a plain non-deductible add-back.
  3. Decide whether this needs a cutover for years already filed, like the 2025 cutover in #5095.

Acceptance criteria

  • One adjustment: a tax_excluded 922 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.
Lingua principale
TypeScript
Stelle
30
Fork
10
Merge medio
2g 12h
PR unite (30g)
276

Preparare l'ambiente

Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di Urigo/accounter-fullstack

Tutte le issue di Urigo/accounter-fullstack

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.