fix(billing): mark all required fields on the New Invoice form (PMS-187) #104
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/mapps-187-invoice-required-fields"
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?
What
On the New Invoice form, only the Company field showed the required asterisk - but the submit handler already requires Invoice Date, Due Date, and each line item's Description, Quantity, and Unit Price (it blocks submit with an inline error otherwise). The required affordance under-reported what was required, so users only found out on submit.
Changes
required: trueto Invoice Date and Due Date (they already have labels, so the asterisk renders).required: true.Validation behaviour is unchanged; this is purely the visual required indicator.
Verification
cargo check --target wasm32-unknown-unknownandcargo fmt --checkclean. (The one host clippy hit isclippy::manual_checked_opson pre-existingprojects.rs:685, a lint that only exists in host rust 1.95; CI runs rust 1.94 where it does not fire.)🤖 Generated with Claude Code