Files
accounted/registry/entries/swedish-project-accounting.mdx
T
3d1ed15b6d feat(registry): move community registry source of truth into the public repo (#1458)
* feat(registry): move community registry source of truth into the public repo

The site's registry page says "Lägg till en egen" and links here, but the
MDX entries lived in the private website repo, so an external contributor
had no path to open the PR we were inviting (found by the first person who
tried). This makes the invitation real:

- registry/entries/ + registry/authors/ hold the 20 existing entries and
  2 author profiles, migrated verbatim from the website repo, which now
  syncs FROM this directory instead of owning the content
- registry/README.md documents the frontmatter convention and the flow
- scripts/validate-registry.ts (npm run validate:registry, wired into
  core-build) checks structure and rejects JSX/import/export in bodies:
  the site renders entries through MDX, which would execute those inside
  the website build
- CONTRIBUTING.md points at the registry for listing community work

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>

* fix(registry): close MDX-safety gaps and correct six compliance claims from PR review

Review bot findings on #1458, both verified and addressed:

- The body safety gate only rejected capitalized JSX tags, but MDX also
  evaluates lowercase HTML tags (<div>, <img onerror=...>) and bare {...}
  expressions. The validator now rejects any raw tag and any brace outside
  fenced code and backtick inline code; literal tags in prose go in
  backticks. Verified: a crafted entry with all three bypasses fails, all
  existing content still passes.
- Six factual errors in migrated entries, each checked against the skill
  sources in .claude/skills/ before editing (these were live on the site
  already): traktamente 2026 is 300 kr not 260; employer contributions for
  66+ at year start (67+ from 2026) are 10.21% not "65+: 16.36%", and the
  under-18 0% claim is replaced with the documented 18-22 youth reduction;
  electronics reverse-charge threshold is 100 000 kr excl VAT per invoice
  not 250 000; half prisbasbelopp 2026 is 29 600 not 24 750; kostnadsställe
  is SIE dimension 1 not 7; SRU period suffixes encode the fiscal-year end
  range (P1 jan-apr, P2 maj-aug, P4 sep-dec) not fixed months.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>

---------

Signed-off-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
2026-08-08 10:54:09 +02:00

54 lines
3.3 KiB
Plaintext

---
title: "swedish-project-accounting — projektredovisning och successiv vinstavräkning"
description: "SKILL.md för svensk projektredovisning. Dimensionstaggning av bokföringsposter med projektkoder, WIP-redovisning (pågående arbeten), intäktsredovisning enligt K2 (färdigställandemetoden) vs K3 (successiv vinstavräkning), entreprenadavtal, BAS 1470/1620/2420/2450/4970, SIE4-dimensioner (#DIM 6, #OBJEKT)."
slug: "swedish-project-accounting"
kind: "skill"
author: "erp-mafia"
status: "live"
lang: "sv"
personas: ["finance", "byra", "developer"]
publishedAt: "2026-05-12"
updatedAt: "2026-08-08"
repoUrl: "https://github.com/erp-mafia/swedish-accounting-skills/tree/main/.claude/skills/swedish-project-accounting"
externalUrl: "https://github.com/erp-mafia/swedish-accounting-skills"
version: "community"
ogImageEyebrow: "Skill"
faq:
- q: "Successiv vinstavräkning eller färdigställandemetoden?"
a: "K2 (mindre företag) ska använda färdigställandemetoden: intäkt tas upp först när uppdraget är klart. K3 kapitel 23 tillåter successiv vinstavräkning för uppdrag till fast pris om resultatet kan beräknas tillförlitligt. Skillen visar färdigställandegrad-beräkning, upparbetad ej fakturerad intäkt (BAS 1620) och fakturerad ej upparbetad intäkt (BAS 2450)."
- q: "Hur taggar man dimensioner i SIE4?"
a: "Dimension definieras med #DIM (6 = projekt, 1 = kostnadsställe). Objekt per dimension med #OBJEKT. Transaktionsrader får objektlistor i {curly braces} i #TRANS-raden. Skillen visar exakta exempel för projekt+kostnadsställe-kombinationer och hur olika system tolkar dem."
- q: "Vad är skillnaden mellan projekt och kostnadsställe?"
a: "Konceptuell, inte teknisk. Projekt = tidsbegränsat uppdrag (kundleverans, byggprojekt). Kostnadsställe = organisatorisk enhet (avdelning, fordon). Båda är SIE4-dimensioner och båda kan filtreras i `gnubok_query_journal`. Skillen rekommenderar separata dimensioner istället för en kombo-kod."
---
## Vad skillen täcker
* Dimensionstaggning av bokföringsposter med projektkoder.
* WIP-redovisning (pågående arbeten): BAS 1470 (varulager pågående arbeten).
* Intäktsredovisning under K2 (färdigställandemetoden) och K3 (successiv vinstavräkning, kapitel 23).
* Entreprenadavtal: fast pris vs löpande räkning, tax-accounting-divergens för löpande räkning.
* BAS-konton för projektspårning: 1470 (varulager), 1620 (upparbetad ej fakturerad intäkt), 2420 (förskott från kund), 2450 (fakturerad ej upparbetad intäkt), 4970 (förändring lager pågående arbeten).
* SIE4-dimensioner: #DIM 6 (projekt), #OBJEKT-deklarationer, #TRANS objektlistor.
* Projektlönsamhet: intäkt minus direkta kostnader per projekt-kod.
* Overhead-allokering (fördelningsnycklar): vad som får läggas på projekt.
* Färdigställandegrad: input-metod (cost-to-cost), output-metod (mätbara milstolpar).
* Befarad förlust på projekt: avsättning enligt K3.
## Installera
```bash
git clone https://github.com/erp-mafia/swedish-accounting-skills.git
cd swedish-accounting-skills
claude
```
## Pairs med
* [swedish-financial-reporting](/community/registry/swedish-financial-reporting) — projektresultatet hamnar i årsredovisningen.
* accounteds `gnubok_query_journal` accepterar `project` och `cost_center` som filter, så skillen är användbar med eller utan accounted.
## Licens
MIT.