From 5131ee908510acd4542ef8fb6a4159ea5f12c60f Mon Sep 17 00:00:00 2001 From: Mattsson <111893710+mattssonn@users.noreply.github.com> Date: Mon, 31 Aug 2026 22:26:14 +0200 Subject: [PATCH] fix(errors): point payment-account-missing message at Installningar -> Fakturering (#2088) A user importing invoices from Visma hit INVOICE_SEND_PAYMENT_ACCOUNT_MISSING on mark-sent and could not find where to add the account: the message said "under Fakturering" without saying it lives in settings. Spell out the full path (Installningar -> Fakturering) in the Swedish and English messages and the remediation line, matching the wording other structured errors already use. Copy-only: error code, status, and behavior unchanged. Claude-Session: https://claude.ai/code/session_01Vh2e8MkbnTbTwRDDLV3tTo Co-authored-by: Claude Fable 5 --- lib/errors/structured-errors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/errors/structured-errors.ts b/lib/errors/structured-errors.ts index 8057f896..b92fcfc1 100644 --- a/lib/errors/structured-errors.ts +++ b/lib/errors/structured-errors.ts @@ -1145,10 +1145,10 @@ const INVOICE: Record = { }, INVOICE_SEND_PAYMENT_ACCOUNT_MISSING: { httpStatus: 400, - message_sv: 'Fakturan saknar ett betalningskonto för vald valuta. Lägg till kontot under Fakturering innan du skapar PDF-filen eller skickar fakturan.', - message_en: 'The invoice has no payment account for its currency. Add the account under Invoicing before generating the PDF or sending the invoice.', + message_sv: 'Fakturan saknar ett betalningskonto för vald valuta. Lägg till kontot under Inställningar → Fakturering innan du skapar PDF-filen eller skickar fakturan.', + message_en: 'The invoice has no payment account for its currency. Add the account under Inställningar → Fakturering (Settings → Invoicing) before generating the PDF or sending the invoice.', remediation: { - description: 'Lägg till ett betalningskonto med IBAN för fakturans valuta under Fakturering.', + description: 'Lägg till ett betalningskonto med IBAN för fakturans valuta under Inställningar → Fakturering.', }, }, INVOICE_SEND_NUMBER_ASSIGN_FAILED: {