Tax computation: a tax_excluded 922 expense is adjusted through both the §20A R&D spread and yearlyRndExcludedRnd
Maintainer thường phản hồi trong vòng 2 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 22/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- TypeScript
- Star
- 30
- Fork
- 10
- Merge trung bình
- 2 ngày 12 giờ
- Pull request đã merge (30 ngày)
- 276
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Urigo/accounter-fullstack
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 73/100
Urigo/accounter-fullstack#5302 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
1214 annual-audit-workflow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Urigo/accounter-fullstack#5257 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
1214 annual-audit-workflow
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Urigo/accounter-fullstack#5256 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
annual-audit-workflow
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 87/100
Urigo/accounter-fullstack#5252 ·
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
Urigo/accounter-fullstack#4919 ·
Maintainer thường phản hồi trong vòng 2 ngày
Tất cả issue của Urigo/accounter-fullstack
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
tashfeenahmed/freellmapi#2217 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 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Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
-
Slider: Escape during a thumb drag keeps and commits the dragged value, unlike ui-sdk's other dragsĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vercel-labs/ui#1758 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
nicobailon/pi-subagents#3425 ·
Maintainer thường phản hồi trong vòng 1 ngày