Supp/verifikationer inconsitency (#369)

* feat(bookkeeping): implement reset bookkeeping functionality with safeguards

* feat(migrations): restore relaxed trigger for retroactive first fiscal year
This commit is contained in:
Mattsson
2026-04-27 20:55:56 +02:00
committed by GitHub
parent 9a7f067fdd
commit 1a6b407a60
4 changed files with 128 additions and 1 deletions
@@ -4,6 +4,7 @@ import { requireCompanyId } from '@/lib/company/context'
import { requireWritePermission } from '@/lib/auth/require-write'
import { ensureInitialized } from '@/lib/init'
import { eventBus } from '@/lib/events/bus'
import { getErrorMessage } from '@/lib/errors/get-error-message'
ensureInitialized()
@@ -59,7 +60,7 @@ export async function DELETE(
if (error) {
return NextResponse.json(
{ error: error.message },
{ error: getErrorMessage(error, { context: 'journal_entry', statusCode: 400 }) },
{ status: 400 }
)
}