fix(arsredovisning): unblock the signing flow, accept foreign parent org nr, explain Fortnox underlag failures (#1738)

Batch from a real migration walkthrough (Fortnox -> Accounted, 2026-08-20):

- Årsredovisning: the "Låst version" select was empty with no explanation
  because the only version was a draft and "Lås version för underskrift"
  is disabled while the four Lagstadgade upplysningar checkboxes and the
  content confirmation count as blockers. The select is now disabled with a
  hint that names the blocker count and links to Fullständighetskontroll,
  the four AR-NOTE-*-UNCONFIRMED issues carry remediation text, the lock
  button explains why it is grey, and "Markera som signerad" says what it
  still needs (locked version, bevisreferens, date).
- Moderföretagets org.nr accepts a foreign registration identifier
  (CHE-123.456.789, HRB 12345, 923 609 016); personnummer shapes stay out.
- Fortnox underlag discovery: log status, body and Fortnox's message on
  failure, show the message in the UI, treat a 400 with behörighet/scope
  text as scopes-required, and fall back to an unfiltered
  voucherfileconnections list when the financialyear filter answers 400.
- Kontomapping: the Momskod column had min-w only; table-fixed collapsed it
  and its selects overflowed into Konfidens. Real w-72 now.
- SIE import warnings pluralise correctly for one skipped voucher; the
  Verifikationsserie option says the source series is preserved.

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Jakob Wennberg
2026-08-20 13:25:06 +02:00
committed by GitHub
co-authored by Jakob Wennberg Claude Fable 5
parent 5a8dd21931
commit e733ab7c43
20 changed files with 418 additions and 45 deletions
+4
View File
@@ -5446,6 +5446,8 @@
"ext_arcim_documents_retry_discovery": "Check again",
"ext_arcim_documents_retry_import": "Try importing again",
"ext_arcim_documents_error_reference": "Error reference: {requestId}",
"ext_arcim_documents_provider_message": "Source system response: {message}",
"ext_arcim_option_series_help": "Vouchers keep their series from the source system (A, D, E ...). The series here is only used for vouchers without one.",
"ext_arcim_documents_result_description": "The document import is complete.",
"ext_arcim_documents_imported": "Imported",
"ext_arcim_documents_skipped": "Already present",
@@ -7538,6 +7540,8 @@
"signer_roster_confirmed": "Styrelse och VD är kontrollerade mot Bolagsverket",
"create_snapshot": "Skapa versionsutkast",
"lock_version": "Lås version för underskrift",
"lock_hint_blocked": "{count, plural, one {Lås version för underskrift blir tillgänglig när det blockerande felet ovan är åtgärdat.} other {Lås version för underskrift blir tillgänglig när de # blockerande felen ovan är åtgärdade.}}",
"lock_hint_unsaved": "Spara texten längre ner innan versionen kan låsas.",
"versions_title": "Versioner och dokument",
"versions_empty": "Inga versionsutkast har skapats ännu.",
"version_label": "Version {number}",
+4
View File
@@ -5446,6 +5446,8 @@
"ext_arcim_documents_retry_discovery": "Kontrollera igen",
"ext_arcim_documents_retry_import": "Försök importera igen",
"ext_arcim_documents_error_reference": "Felreferens: {requestId}",
"ext_arcim_documents_provider_message": "Svar från källsystemet: {message}",
"ext_arcim_option_series_help": "Verifikat behåller sin serie från källsystemet (A, D, E ...). Serien här används bara för verifikat som saknar serie.",
"ext_arcim_documents_result_description": "Underlagsimporten är klar.",
"ext_arcim_documents_imported": "Importerade",
"ext_arcim_documents_skipped": "Fanns redan",
@@ -7538,6 +7540,8 @@
"signer_roster_confirmed": "Styrelse och VD är kontrollerade mot Bolagsverket",
"create_snapshot": "Skapa versionsutkast",
"lock_version": "Lås version för underskrift",
"lock_hint_blocked": "{count, plural, one {Lås version för underskrift blir tillgänglig när det blockerande felet ovan är åtgärdat.} other {Lås version för underskrift blir tillgänglig när de # blockerande felen ovan är åtgärdade.}}",
"lock_hint_unsaved": "Spara texten längre ner innan versionen kan låsas.",
"versions_title": "Versioner och dokument",
"versions_empty": "Inga versionsutkast har skapats ännu.",
"version_label": "Version {number}",