* feat(bookkeeping): make inline rättelse discoverable on the verifikat page (#1554)
A user who wanted Fortnox-style "stryk rader" went looking on the
verifikat page and concluded the feature did not exist: since #1739 every
correction action sits behind an icon-only ⋯ menu, nothing says which
correction track applies when, and the struck-line marker showed only a
date.
- Promote "Stryk rader i verifikatet" to a visible outline button for a
posted, non-structural entry whose period the period-status endpoint
reports as open; the ⋯ item stays so the menu remains the complete list.
- Add the convention-7 "?" after the H1 with the two-sentence track rule:
inline rättelse while the period is open and unlocked, storno once it is
locked, closed or declared.
- The rattelse-log route now returns an additive actor_label resolved
from profiles via the service client (same precedent as
behandlingshistorik); struck rows read "Struken {date} av {actor}" and
the Rättelsehistorik rows carry the actor beside the date.
No change to the RPCs, the log table, or which corrections are legal.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015nAd8XJ2RPCmG2eKoLBdna
* fix(bookkeeping): address review findings on inline rättelse discoverability (#1554)
- Tie the un-awaited period-status fetch to the fetchData run that issued
it (monotonic request ref), so an earlier response resolving last can no
longer set periodStatus='open' for an entry in a locked period and promote
the "Stryk rader" button the RPC would refuse.
- Align the "?" help copy with what the system enforces: storno is the only
path once the period is locked or closed; a VAT-declared month is stated
as a caveat (same wording as the StrikeLinesDialog explainer), not as a
gate the product does not apply. Both sv and en.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015nAd8XJ2RPCmG2eKoLBdna
---------
Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>