diff --git a/app/Controllers/ClientController.php b/app/Controllers/ClientController.php
index 46186684..ca43f2d2 100755
--- a/app/Controllers/ClientController.php
+++ b/app/Controllers/ClientController.php
@@ -3679,7 +3679,10 @@ class ClientController extends AdminController
{
// ---------for client-----------------------------------------------------------------------------
- $clients = $this->clientModel->where('is_active', 1)->findAll();
+ $clients = $this->clientModel
+ ->select("*, DATE_FORMAT(dob, '%d-%m-%Y') as dob")
+ ->where('is_active', 1)
+ ->findAll();
$clientIds = array_column($clients, 'id');
@@ -3814,7 +3817,7 @@ class ClientController extends AdminController
// Add additional fields if client type is 2
if ($client_type == 2) {
$client_data = array_merge($client_data, [
- 'dob' => $postData['dob'],
+ 'dob' => change_date_format($postData['dob'],'d/m/Y','Y-m-d'),
'aadhar' => $postData['aadhar'],
'phone' => $postData['phone'],
'email' => $postData['email'],
diff --git a/app/Views/policy_transaction_inception_form.php b/app/Views/policy_transaction_inception_form.php
index a2d0ee4c..11f601cc 100644
--- a/app/Views/policy_transaction_inception_form.php
+++ b/app/Views/policy_transaction_inception_form.php
@@ -802,8 +802,8 @@
-
-
+
+
@@ -827,9 +827,8 @@
-
-
+
@@ -1052,6 +1051,9 @@ $(document).ready(function(){
}
});
+ $('#aadhar').attr('data-parsley-required', 'false');
+ $('#aadhar').removeAttr('required');
+
team_id = ;
console.log('team_id', team_id);
@@ -2655,7 +2657,7 @@ function appendOwner(data) {
let client_show_name = item.client_name;
if (item.client_type == 2) {
- client_show_name = item.client_name + ' - ' + (item.pan ?? 'N/A');
+ client_show_name = item.client_name + ' - ' + (item.dob ?? 'N/A');
}
var option = $('