diff --git a/application/views/addRawMaterial.php b/application/views/addRawMaterial.php index 4345418d..4bdd0fec 100644 --- a/application/views/addRawMaterial.php +++ b/application/views/addRawMaterial.php @@ -1,4 +1,26 @@ - +
@@ -32,7 +54,7 @@
Material Name - +
@@ -56,7 +78,7 @@
- Unit of Mesurement + Unit of Measurement +
UA Number @@ -333,7 +333,7 @@ function onlyAlphabets(evt) {
- +
@@ -384,9 +384,15 @@ function Validate() { if(!validatePAN()) { - return false; + $('#panno').focus(); + return false; } +if(!validateEmail()) +{ + $('#emailid').focus(); + return false; +} } //Call to ajax existing PAN @@ -404,15 +410,18 @@ function Validate() if(data) { - var answer = confirm(data+""+" supplier details is already exists in the database.Do you want to change the SUPPLIER details?") - if (answer) { - $('#panno').val(''); + var answer = confirm(data + " " +" supplier details is already exists in the database.Do you want to change the SUPPLIER details?") + if (answer) +{ + $('#panno').val(''); + $('#panno').focus(); - } - else + return false; + } + else { alert('Please edit the supplier details in the Edit screen and change the supplier status to Active'); - window.location = 'supplier/supplierListing'; + window.location = 'supplier/supplierListing'; } } @@ -424,6 +433,7 @@ function Validate() { alert('Please enter the PAN Number'); $('#panno').focus(); + return false; } }); diff --git a/application/views/editSupplier.php b/application/views/editSupplier.php index 406c2a8a..adbd3570 100644 --- a/application/views/editSupplier.php +++ b/application/views/editSupplier.php @@ -67,24 +67,7 @@ if(!empty($supplier)) ?>