Project

General

Profile

Actions

BUG #2424

open

[SQA] Improve "Create New Customer" Form – Field Validation, Auto-Generated ID, and Address Field Ordering

Added by Md. Abdul Hamid 11 months ago. Updated 10 months ago.

Status:
Complete
Priority:
High
Category:
-
Target version:
-
Start date:
05/13/2025
Due date:
% Done:

100%

Estimated time:
Spent time:

Description

The "Create New Customer" form needs improvements to enhance data accuracy, ensure proper validation (especially for Bangladesh), and provide a better user experience. The following updates are required:

  1. Customer ID Auto-Generation
    The Customer ID field should be auto-generated by the system.

Format can be sequential or unique (e.g., CUS-YYYYMMDD-XXX or UUID).

The field should be read-only for users.

  1. Customer Name Validation
    The Customer Name field must:

Reject numbers and special characters.

Allow only Bengali or English letters, spaces, and common name characters like apostrophes or hyphens.

Display an appropriate validation message if invalid input is detected.

  1. Phone Number Validation (Bangladesh Format)
    Accept only valid Bangladeshi mobile numbers:

Must be 11 digits starting with 01, or +8801 if international format is supported.

Reject entries with alphabetic characters or incorrect length.

Examples of valid formats:

017XXXXXXXX

+88017XXXXXXXX

  1. Email Validation
    Ensure valid structure (e.g., ).

Prevent common format issues like multiple @ symbols or missing domain parts.

Should support standard TLDs (.com, .bd, .org, etc.).

  1. Reorder Address Fields
    To follow the standard Bangladeshi address format, reorder the address fields as follows:

Postal Code (first)

City/Town

District

Division

This sequence should be reflected both visually and in the tab order for accessibility.


Files

Actions

Also available in: Atom PDF