feat: stage kontantmetod year-end cutoff (#1586)

* feat: stage kontantmetod year-end cutoff

* fix: keep cutoff tool payload searchable

* fix: trim year-end tool metadata
This commit is contained in:
Mattsson
2026-08-13 15:55:01 +02:00
committed by GitHub
parent 9be20b4274
commit 73c63209f1
20 changed files with 1460 additions and 136 deletions
@@ -106,4 +106,19 @@ describe('pending_operations operation_type CHECK audit', () => {
client.release()
}
})
it('accepts post_kontantmetod_cutoff for the staged year-end posting flow', async () => {
const client = await getPool().connect()
try {
await client.query('BEGIN')
await client.query(
`INSERT INTO public.pending_operations (user_id, company_id, operation_type, title)
VALUES ($1, $2, 'post_kontantmetod_cutoff', 'kontantmetod cut-off')`,
[userId, companyId],
)
await client.query('ROLLBACK')
} finally {
client.release()
}
})
})