* feat(bookkeeping): edit & customize booking templates in GUI
Make bokföringsmallar editable from /settings/templates and surface the
ratio (Andel) field, addressing two user requests.
- Refactor CreateTemplateForm into a shared TemplateForm (create / edit /
duplicate) reusing the existing POST and PUT routes.
- Add an Edit (pencil) action on company/team templates, and an Anpassa
(customize) action on read-only "Standard" templates that forks a
company-scoped copy — letting a company override the standard 1930
settlement account with e.g. 1920 without mutating the shared template.
- Show the ratio field progressively (only when a template splits across
more than one cost line), with an InfoTooltip, a non-blocking
"shares must sum to 1.0" warning, and a live "1 000 kr" split preview.
- Add settings_booking_templates i18n keys in both sv and en.
Frontend-only: no API, schema, type, or migration changes.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
* fix(bookkeeping): show ratio input on cost lines only
Addresses PR review: the Andel input also appeared on settlement lines
when a template had multiple cost lines, but settlement ratios don't feed
the "shares sum to 1.0" check or balance validation. Restrict the editable
ratio to cost/revenue lines; the settlement leg (full counter-amount) is
shown in the live preview instead. No behavior change to applyTemplate.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>