Actions
BUG #2425
open[SQA]Improve Validation and Field Structure in "Create New Customer" Form
Description
- Remove "Initial Balance" Field
-
The Initial Balance input field should be completely removed from the form.
-
It is no longer required during customer creation.
- Customer ID Auto-Generation
-
Customer ID should be auto-generated by the system.
-
Must be read-only to the user.
- Name Field Validations
-
Customer Name and Contact Person’s Name:
-
Disallow numbers and special characters.
-
Accept only letters (A-Z/a-z or Bengali), spaces, hyphens, and apostrophes.
- Phone Number Validation
-
Both Customer and Contact Person phone numbers must:
-
Be exactly 11 digits
-
Start with “01”
-
Reject country code format (+880) unless properly normalized
- Email Validation
-
Customer and Contact Person emails must:
-
Follow standard email syntax
-
Reject invalid formats (e.g., missing @, domains, etc.)
- Address Field Reordering
Reorder address fields as follows:
-
Postal Code
-
City/Town
-
District
-
Division
- Contact Person DOB Field Update
- Placeholder: dd-mm-yyyy (Must be 18+ years old)
- Validation:
- Only allow dates that are at least 18 years before today’s date
- Show an error for invalid selection
Files
Actions