CHANGE_CLIENT_FILE_UPLOAD_PAN_DUP_CHECK : AADHAVAN
This commit is contained in:
parent
a41a3f5c11
commit
1797349ebb
@ -435,7 +435,11 @@ class ClientController extends BaseController
|
||||
"created_by" => $created_by,
|
||||
"business_id" => $business_id,
|
||||
];
|
||||
$client_pan_find = $this->ClientModel->where('pan_no', $value['pan_no'])->first();
|
||||
|
||||
if($client_pan_find){
|
||||
|
||||
}else{
|
||||
$client = $this->ClientModel->insert($insertData);
|
||||
if($client){
|
||||
if($value['branches']){
|
||||
@ -453,11 +457,19 @@ class ClientController extends BaseController
|
||||
"pin_code" => $branch['pin_code'],
|
||||
"address" => $branch['address'],
|
||||
];
|
||||
|
||||
if($this->ClientBranchModel->where('gst_no', $branch['gst_no'])->first()){
|
||||
|
||||
}else{
|
||||
$clientBranch = $this->ClientBranchModel->insert($insertBranchData);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return json_encode(true);
|
||||
} else {
|
||||
echo "Invalid file extension.";
|
||||
|
||||
Loading…
Reference in New Issue
Block a user