fix(bokslut): remove uppskjuten skatt on obeskattade reserver in juridisk person (K3 29.37) (#1421)

* fix(bokslut): remove uppskjuten skatt on obeskattade reserver in juridisk person (K3 29.37) and confirm K3 to K2 reversion

In juridisk person K3 29.37 keeps obeskattade reserver at gross; the 79.4/20.6 split belongs to koncernredovisning. The old disposition double-counted the tax portion (result charged twice, 2240 overstated on top of gross 21xx). Removes the proposal step, POST kind, UI case, K2-to-K3 account seeding and the interim framework gate; keeps LATENT_TAX_DEFAULT_RATE for analytical soliditet presentation. Also adds the K3-to-K2 consequence confirmation dialog in settings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* docs(decisions): scope the batch log to shipped code and record the 29.37 election nuance

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

* fix(settings): stop promising deferred-tax accounting the engine no longer does

The framework help text and the K2-to-K3 confirmation both told the user that switching to K3 means uppskjuten skatt is recognised separately on 2240/8940 with a 79.4/20.6 split. This PR removes exactly that behaviour, so the copy would have promised something the product does not do, which is the defect class this batch exists to remove. Both now describe what actually happens: kassaflodesanalys, komponentavskrivning and a wider note set, with obeskattade reserver carried gross per K3 29.37.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

---------

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-06 10:05:15 +02:00
committed by GitHub
co-authored by Claude Fable 5 Jakob Wennberg
parent 8f38baca05
commit 12c59399ee
12 changed files with 132 additions and 523 deletions
@@ -694,10 +694,6 @@ function buildPostItems(proposal: DispositionsProposal, ui: UiState): PostItem[]
})
break
}
case 'uppskjuten_skatt':
// K3 only: server recomputes the amount; client just signals intent.
items.push({ kind: 'uppskjuten_skatt' })
break
}
}
if (Object.keys(ateforingReturns).length > 0) {
+38 -20
View File
@@ -33,9 +33,12 @@ interface AccountingFrameworkFormProps {
*
* UX rules (regulatory area: kept in Swedish):
* - Default is K2 (matches the column default and BFNAR 2016:10 baseline).
* - Switching K2 → K3 fires a confirmation dialog. The recommendation per
* BFN is that the choice is permanent for the company once made; we
* surface that as a warning, not a block, so the user can still revert.
* - Switching in either direction fires a confirmation dialog. K2 → K3
* warns about the added obligations; the recommendation per BFN is that
* the choice is permanent once made, surfaced as a warning, not a block.
* K3 → K2 warns about what the system does NOT do: uppskjuten skatt
* (2240/8940) balances and komponentavskrivningar are not unwound
* automatically, and the K3 årsredovisning content stops applying.
* - The save is its own request (PATCH /api/company/current): separate
* from /api/settings because the column lives on companies, not on
* company_settings.
@@ -88,13 +91,9 @@ export function AccountingFrameworkForm({ current, onSaved }: AccountingFramewor
function handleChange(next: string) {
const value = next as AccountingFramework
if (value === selected) return
// K2 → K3 is the consequential direction: confirm before persisting.
if (selected === 'k2' && value === 'k3') {
setPending(value)
return
}
setSelected(value)
void persist(value)
// Both directions are consequential: K2 → K3 adds obligations, K3 → K2
// leaves K3-only balances behind. Confirm before persisting either way.
setPending(value)
}
return (
@@ -107,8 +106,8 @@ export function AccountingFrameworkForm({ current, onSaved }: AccountingFramewor
K2 är standard för mindre bolag och innebär förenklade regler. K3 krävs när
bolaget når två av tre tröskelvärden (nettoomsättning &gt; 80 MSEK, tillgångar
&gt; 40 MSEK, eller fler än 50 anställda). K3 ställer högre krav: kassaflödesanalys,
komponentavskrivning på materiella anläggningstillgångar och redovisning av
uppskjuten skatt på obeskattade reserver (79,4 % eget kapital / 20,6 % skuld).
komponentavskrivning på materiella anläggningstillgångar och mer omfattande noter.
Obeskattade reserver redovisas brutto i juridisk person enligt K3 punkt 29.37.
</>
}
>
@@ -137,15 +136,32 @@ export function AccountingFrameworkForm({ current, onSaved }: AccountingFramewor
>
<DialogContent>
<DialogHeader>
<DialogTitle>Byta till K3?</DialogTitle>
<DialogTitle>{pending === 'k2' ? 'Byta till K2?' : 'Byta till K3?'}</DialogTitle>
<DialogDescription className="space-y-2 pt-2">
<span className="block">
K3 medför löpande att kassaflödesanalys upprättas, komponentavskrivning
används och uppskjuten skatt redovisas separat (konto 2240 / 8940).
</span>
<span className="block">
Bytet är permanent enligt rekommendation. Fortsätt?
</span>
{pending === 'k2' ? (
<>
<span className="block">
Bokförda saldon för uppskjuten skatt (konto 2240 / 8940) och gjorda
komponentavskrivningar återförs inte automatiskt: de måste hanteras
manuellt.
</span>
<span className="block">
Årsredovisningens K3-innehåll (kassaflödesanalys, K3-noter och
uppskjuten skatt) gäller inte längre. Fortsätt?
</span>
</>
) : (
<>
<span className="block">
K3 medför löpande att kassaflödesanalys upprättas, att
komponentavskrivning kan användas och att årsredovisningen får ett
utökat notinnehåll.
</span>
<span className="block">
Bytet är permanent enligt rekommendation. Fortsätt?
</span>
</>
)}
</DialogDescription>
</DialogHeader>
<DialogFooter>
@@ -168,6 +184,8 @@ export function AccountingFrameworkForm({ current, onSaved }: AccountingFramewor
<>
<Loader2 className="mr-2 h-4 w-4 animate-spin" /> Sparar…
</>
) : pending === 'k2' ? (
'Byt till K2'
) : (
'Byt till K3'
)}