* fix(skattekonto): route AGI draw back to 2731 to match salary module (#1870) Migration 20260519160000 moved the skattekonto AGI seed to 2730 while the salary module kept crediting 2731, splitting the employer-contribution liability across two accounts that never net at account level (both carry SRU 7231, so only huvudbok reconciliation exposes the drift). Revert the system seed to 2731: BAS 2026 defines 2731 as the reported-but-unpaid arbetsgivaravgift liability (the accrual account is 2940), and the salary ore-residual logic is built around 2731. Historical 2730 debits since 2026-05-19 are left for per-company reclass verifikat; the migration touches the system seed only. Fixes #1870 Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(skattekonto): bump migration version to avoid collision with 20260825120000_create_company_for_user Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> * fix(payroll): align remaining 2730 guidance surfaces on 2731 (#1870) Skeptic regression finding: companies booking salary manually were taught 7510/2730 by in-product guidance, so the seed revert alone would re-create the #1870 split mirrored for them. Align every guidance surface on 2731: - packs/loneutbetalning.yaml legal_note - MCP payroll-monthly skill (booking recipe and rate notes) - swedish-payroll SKILL.md + references/bas-7xxx.md (2731 convention, 2730 group-account alternative, never mixed; accrual is 2940) + regenerated agent atom seed (skills:generate -> 20260825180001) - public/docs/systemdokumentation-mall.md Also addresses the compliance review finding that the swedish-payroll skill contradicted the migration. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com> --------- Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
33 lines
966 B
YAML
33 lines
966 B
YAML
# Konteringspaket. Schema: lib/packs/schema.ts
|
|
# Validated by `npm run validate:packs` (CI gate).
|
|
meta:
|
|
slug: loneutbetalning
|
|
order: 15
|
|
name: 'Löneutbetalning'
|
|
category: salary
|
|
entity_type: aktiebolag
|
|
description: >-
|
|
Utbetalning av lön till anställd. Ange bruttolönen som belopp.
|
|
legal_note: >-
|
|
Bruttolön debiteras 7010, avdragen personalskatt krediteras 2710 och
|
|
nettolönen krediteras 1930. Skatteandelen här är schablonmässiga 30 %:
|
|
justera raderna efter det faktiska skatteavdraget enligt skattetabell.
|
|
Arbetsgivaravgifter (7510/2731) och semesterlöneskuld (7290/2920) bokas
|
|
som egna verifikat, inte i den här mallen.
|
|
lines:
|
|
- account: '7010'
|
|
label: 'Löner'
|
|
side: debit
|
|
type: business
|
|
ratio: 1.0
|
|
- account: '2710'
|
|
label: 'Personalskatt'
|
|
side: credit
|
|
type: business
|
|
ratio: 0.3
|
|
- account: '1930'
|
|
label: 'Företagskonto'
|
|
side: credit
|
|
type: settlement
|
|
ratio: 0.7
|