Files
accounted/supabase/migrations/20260717152000_replace_bokslut_with_arsstamma.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

16 lines
769 B
SQL

-- Remove the non-statutory 'bokslut' deadline (issue #1028).
--
-- The "3 months after FY end" bokslut deadline had no legal basis (the
-- statutory anchors for AB are the arsstamma within 6 months, ABL 7 kap.
-- 10 §, and the Bolagsverket filing within 7 months, ARL 8 kap.), and its
-- non-calendar-FY date math was off by one month (a May-start FY produced
-- 31 Aug instead of 31 Jul; a Nov-start FY produced "Feb 31" which rolled
-- into March). The generator now produces an 'arsstamma' deadline instead;
-- the daily backfill cron creates those rows on its next run.
--
-- Completed rows are kept for history; pending rows are template noise.
DELETE FROM public.deadlines
WHERE source = 'system'
AND tax_deadline_type = 'bokslut'
AND is_completed = false;