PROTOTYPE Invoice Number — Auto-Increment + Required Field Validation · SYH-326

Invoice Number UX Improvements

1
Auto-Increment Invoice Number
New invoice → pre-populated with next number
❌ Current
Invoice Number Required
Empty field. User must manually type the number every time. No indication of what the last number was.
✅ Proposed
Invoice Number Required
Auto-generated · Last invoice was 1491 · Editable
Logic: Query the vendor's last invoice number, add 1. User can override manually. If the vendor has no prior invoices, leave blank with placeholder "Enter first invoice number".
2
Required Field Validation on Save
Click Save with empty Invoice Number
❌ Current
Invoice Number Required
Nothing happens. No error message, no field highlight, no toast. User has no idea why Save didn't work.
✅ Proposed
Invoice Number Required
Try it: Click Save with the field empty to see the error state. Type a number to clear it.
3
Duplicate Invoice Number Check
Ties into SYH-320
Invoice Number Required
Invoice 1491 already exists for this vendor
Note: This ties into existing ticket SYH-320 (Do not allow user to enter the same invoice number as an existing invoice they created). The auto-increment should inherently avoid this, but the validation should catch manual overrides.