feat(billing): inline company validation on invoice form, drop UUID wording (PMS-579) #388
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-579-invoice-company-inline-error"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem (PMS-579, found in PMS-560 Invoices smoke)
The invoice create form's Company field diverged from the standard field-level validation pattern and leaked an implementation detail:
Fix
CompanyPickeralready accepts and forwards anerrorprop to its wrappedInput(MAPPS-322), so this is purely a caller-side change inInvoiceNewPage:company_errorsignal, passed to the picker'serrorprop, so a blank-company submit paints the red outline + inline message under the field.company_errorto "Company is required." instead of the banner.company_search), so a blank company focuses the field like other required fields.company_errorclears when a company is selected.Scope note
RecordPaymentModaluses the sameCompanyPickerand the same "company ID (UUID)" wording, but it is a separate payment-recording form, not the invoice create form this ticket covers. Left unchanged; can be a follow-up if we want the payment form standardized too.Stacking / housekeeping
Test
Invoice create form -> submit with no company: red outline + "Company is required." under the picker, focus lands on it, no banner, no "UUID". Pick a company: error clears, submit proceeds.
🤖 Generated with Claude Code