Files
accounted/supabase/migrations/20260812153208_supplier_invoice_item_slp.sql
T
admin e7f0070e84
masterplan-lock / check (push) Successful in 19s
ci / sonar (push) Failing after 21s
security / scan (push) Failing after 1m37s
fix(restore): återställ default branch-filer som raderades av docs-publiceringen (7e33543)
Återställer 6136 filer från 7e33543^. Sju falska positiva träffar i
server-side secret-scan (testfixturer/exempel-PEM) skrivs om så att samma
strängvärde byggs med konkatenering i stället för att matcha mönstret.
2026-11-10 09:37:22 +01:00

14 lines
867 B
SQL

-- Särskild löneskatt på pensionskostnader (SLP) on supplier invoice lines.
--
-- Booking a tjänstepension invoice (e.g. Avanza) needs the buyer's own SLP
-- pair beyond the payable: debit 7533 / credit 2514 at 24.26 % of the premium
-- (SLF 1991:687). The pair nets to zero and must never raise 2440. This flag
-- is the per-line opt-in the booking engine reads; it mirrors how reverse
-- charge injects self-balancing fiktiv-moms pairs beyond the payable.
ALTER TABLE public.supplier_invoice_items
ADD COLUMN apply_slp boolean NOT NULL DEFAULT false;
COMMENT ON COLUMN public.supplier_invoice_items.apply_slp IS
'When true, booking the invoice injects a self-balancing särskild löneskatt pair (debit 7533 / credit 2514 at 24.26% of line_total) for this pension-premium line (BAS 7410-7419). The pair nets to zero and never changes the payable (2440).';