Actions
BUG #2421
open[SQA] New Sale Invoice Form – Auto-Generated Invoice Number, Field Validations, and UI Improvements
Description
Enhancements are needed in the New Sale Invoice form to improve data accuracy, user experience, and prevent entry errors.
Requirements:
- Auto-Generate Invoice Number
Invoice numbers should be automatically generated by the system (e.g., INV-YYYYMMDD-XXXX format or sequential).
Field should be read-only to prevent manual editing.
Ensures uniqueness and avoids user input errors.
- Date Picker with Placeholder
The invoice Date field should include a placeholder (e.g., Select a date) when empty.
Enhances clarity and user interface consistency.
- Sales Officer Field Defaults to Logged-In User
The Sales Officer field should:
Default to the currently logged-in user.
Be editable so users with permission can assign sales to someone else if needed.
- Prevent Duplicate Product Selection for Same Batch
When adding items to the invoice:
The same product and batch combination should not be selectable more than once.
Prevents duplicate line entries which could cause incorrect totals or stock inconsistencies.
- Quantity and Price per Unit Validations
The Quantity and Price/Unit fields must:
Reject negative numbers.
Accept only positive numeric values (including decimals where appropriate).
Provide user-friendly error messages for invalid entries.
Actions