Files
accounted/components
Jakob Wennberg f96a445d88 fix(sjalvfaktura): name the arrival date so it is not read as payment date (#2272)
Root cause: the self-billing form labelled invoices.received_date as
"Mottaget datum" / "Received date". Read cold, "mottaget" attaches to
whatever the reader has in mind (payment received, goods received), and
two people in the Discord thread guessed wrong. The field only records
the day the counterparty's document arrived; the payment date is set
separately when the invoice is marked as paid.

Fix: rename the label to "Ankomstdatum" / "Date received" (with the
matching validation message and the next-step hint in the editor
footer), and add a helper line under the field saying the payment date
is set when the invoice is marked paid. Same text-xs muted helper
pattern the form already uses for other hints. The keys live in the
self_billing and invoice_editor namespaces and are used only by
InvoiceEditor.tsx; nothing is shared with the supplier-invoice form.
No DB columns, API fields or types change.

Fixes #2264


Claude-Session: https://claude.ai/code/session_015qgLgdt4mLmha1ZLFMwq1u

Co-authored-by: Jakob Wennberg <311770904+jakobwennberg-oss@users.noreply.github.com>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-04 17:13:52 +02:00
..