Bug 8416

Summary: NIC/BR Validation issue in contact creation
Product: Consolidated Mobile App Reporter: Malinda Rukshan <malinda.r>
Component: Customers ModuleAssignee: Oshada Dissanayake <oshada.d>
Status: CONFIRMED ---    
Severity: major CC: malinda.r
Priority: High    
Version: unspecified   
Hardware: Mobile   
OS: Android   
Attachments: NIC/BR Validation issue in contact creation

Description Malinda Rukshan 2022-10-04 17:17:40 +0530
Created attachment 7312 [details]
NIC/BR Validation issue in contact creation

1 - log in to app using valid login credentials.
2 - Successfully navigate to "Customers" module.
3 - Click "+" button to navigate "create new customer" form.
4 - Select "Contact category" as "Individual".
5 - Fill all other required fields and enter invalid input to "NIC/BR" field.
6 - Click "Save" button.

Expected result
  >> Error message should pop-up as "Please Enter valid NIC".

Current result
  >> Contact get created without validating NIC

>> NIC should contains only,
  * Ten digits - Nine(9) numbers with "V,v" or "X,x"
  * Twelve digits - Twelve(12) numbers

>> If "Contact category" selected as "corporate" , only allow to enter maximum 
   eighteen(18) characters to "NIC/BR" field.