* fix(import): SIE bulk-delete on service client + provider/reporting/banking fixes
Rebuilt branch onto main as a single commit.
- import: run SIE bulk-delete RPCs on the service client to escape the 8s
statement_timeout; undo_sie_import now takes an explicit actor (p_user_id)
so its owner/admin gate works when auth.uid() is NULL on the service
client (migration 20260624120000) + pg-real regression test
- providers: distinguish missing Fortnox license from expired connection;
provider_consent_tokens PK regression test
- reports: include unmapped BAS expense groups in the income statement
- enable-banking: reconnect closed/expired bank sessions in place
- bookkeeping: surface linked invoices as underlag on the verifikat view
- scripts: track BL cleanup/diagnostic tooling; data files (*.csv) are
git-ignored and consentId is now a required arg with no silent default
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(import): add Cache-Control header to journal entry references response
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(dashboard): exclude ignored and already-triaged transactions from stale count
The "Gamla transaktioner" widget counted transactions that had been ignored
or already marked as is_business=true but not yet booked, so users saw a
nag for a row they had already dealt with — and the /transactions inbox
correctly hid it. Align the count with the inbox criterion (is_business
IS NULL, is_ignored = false) so the widget clears when the row leaves
the inbox.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* fix(transactions): read entity_type from settings response wrapper
The transactions page read entityRes.entity_type directly, but
/api/settings returns { data: { entity_type, ... } }. The expression
was always undefined, so setEntityType never fired and entityType
stayed at its initial 'enskild_firma'. The template picker's
entity_type filter then dropped every aktiebolag-tagged user template
for AB customers — only entity_type='all' templates made it through.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
* stale templates
bank sync
journal entry from transaction
* fixed pr comments
* fixed pr comment
---------
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>