FIX_message
This commit is contained in:
parent
e2cc55c25c
commit
1783defb21
@ -450,6 +450,8 @@ class ClientController extends AdminController
|
||||
public function index()
|
||||
{
|
||||
$this->myLogger->logme('error', 'Client list function called');
|
||||
// echo "<script>console.log( 'client list function called );</script>";
|
||||
|
||||
$headerData['tab_name'] = 'Clients';
|
||||
$headerData['page_name'] = 'Clients'; // Both Browser Tab name And Page name are same.
|
||||
// $data['clientList'] = $this->clientModel->getCreatedByUserName(1); // passing client_type
|
||||
|
||||
@ -62,7 +62,6 @@ class ThzController extends BaseController
|
||||
|
||||
public function ticketSave()
|
||||
{
|
||||
try {
|
||||
$rules = [
|
||||
'client_id' => [
|
||||
'rules' => 'permit_empty|integer',
|
||||
@ -70,6 +69,7 @@ class ThzController extends BaseController
|
||||
'integer' => 'Invalid client selected'
|
||||
]
|
||||
],
|
||||
|
||||
|
||||
'mobile' => [
|
||||
'rules' => 'required|regex_match[/^[0-9]{10}$/]',
|
||||
@ -97,17 +97,24 @@ class ThzController extends BaseController
|
||||
],
|
||||
|
||||
'empcode' => [
|
||||
'rules' => 'permit_empty|max_length[50]',
|
||||
'rules' => 'permit_empty|alpha_numeric_punct|max_length[50]',
|
||||
'errors' => [
|
||||
'alpha_numeric_punct' => 'Employee code contains invalid characters.',
|
||||
'max_length' => 'Employee code is too long'
|
||||
]
|
||||
],
|
||||
|
||||
'ticket_type' => [
|
||||
'rules' => 'required|in_list[Sales,Service]',
|
||||
'rules' => 'required',
|
||||
'errors' => [
|
||||
'required' => 'Please select a Ticket Type.'
|
||||
]
|
||||
],
|
||||
|
||||
'ticket_type' => [
|
||||
'rules' => 'required',
|
||||
'errors' => [
|
||||
'required' => 'Ticket Type is required',
|
||||
'in_list' => 'Invalid Ticket Type selected'
|
||||
]
|
||||
],
|
||||
|
||||
@ -119,11 +126,12 @@ class ThzController extends BaseController
|
||||
],
|
||||
|
||||
'subject' => [
|
||||
'rules' => 'required|min_length[5]|max_length[150]',
|
||||
'rules' => 'required|min_length[3]|max_length[150]|regex_match[/^[a-zA-Z0-9 .,\-_()&\/\?]+$/]',
|
||||
'errors' => [
|
||||
'required' => 'Subject is required',
|
||||
'min_length' => 'Subject must be at least 5 characters',
|
||||
'max_length' => 'Subject cannot exceed 150 characters'
|
||||
'required' => 'Subject is required.',
|
||||
'min_length' => 'Subject must be at least 3 characters long.',
|
||||
'max_length' => 'Subject cannot exceed 150 characters',
|
||||
'regex_match' => 'Subject contains invalid characters (Avoid quotes and special symbols).'
|
||||
]
|
||||
],
|
||||
|
||||
@ -151,6 +159,7 @@ class ThzController extends BaseController
|
||||
'errors' => $this->validator->getErrors()
|
||||
]);
|
||||
}
|
||||
try {
|
||||
|
||||
$request_post_data = $this->request->getPost();
|
||||
$data = sanitizeInputArrayAdvanced($request_post_data);
|
||||
|
||||
@ -57,6 +57,64 @@ class BdsPlacementModel extends Model
|
||||
|
||||
|
||||
public function getClientInstallmentDetails()
|
||||
{
|
||||
// 1. Fetch common data ONCE (Heads, Admins, Business Team)
|
||||
// This saves hundreds of redundant queries
|
||||
$heads = $this->db->table('user_profiles')
|
||||
->select('email')->where(['role' => 5, 'is_active' => 1])
|
||||
->get()->getResultArray();
|
||||
|
||||
$admins = $this->db->table('user_profiles')
|
||||
->select('email')->where(['role' => 1, 'is_active' => 1])
|
||||
->get()->getResultArray();
|
||||
|
||||
$businessTeam = $this->db->table("user_teams ut")
|
||||
->select("up.email")
|
||||
->join('user_profiles up', 'up.id = ut.user_id AND up.is_active = 1')
|
||||
->where(["ut.team_id" => 7, "ut.is_active" => 1])
|
||||
->get()->getResultArray();
|
||||
|
||||
// 2. Main Query
|
||||
$builder = $this->db->table("bds_installment_payment_details bipd")
|
||||
->select("bipd.*, ct.client_name, ct.short_name, cb.branch_name, leads.salse_person_id, cp.policy_no")
|
||||
->join("policy_transaction pt", "pt.id = bipd.pt_id")
|
||||
->join("clients ct", "ct.id = pt.client_id")
|
||||
->join("client_branch cb", "cb.id = pt.client_branch_id")
|
||||
->join("leads", "leads.id = bipd.lead_id")
|
||||
->join("client_policy cp", "cp.id = pt.client_policy_id")
|
||||
->where("bipd.is_active", 1)
|
||||
->where("bipd.payment_date", date('Y-m-d', strtotime('+15 days')));
|
||||
|
||||
$data = $builder->get()->getResultArray();
|
||||
|
||||
// Loop through to extract sales person details
|
||||
// 3. Simple Loop for Sales Person (Since it relies on a JSON ID)
|
||||
foreach ($data as &$row) {
|
||||
$sales_person_ids = json_decode($row['salse_person_id'], true);
|
||||
$sales_person_id = $sales_person_ids[0] ?? null;
|
||||
|
||||
if ($sales_person_id) {
|
||||
$user = $this->db->table('user_profiles')
|
||||
->select('email') // or whatever field
|
||||
->where('id', (int)$sales_person_id) // Cast to int for extra safety
|
||||
->get()
|
||||
->getRowArray();
|
||||
|
||||
$row['sales_person'] = $user['email'] ?? 'N/A';
|
||||
} else {
|
||||
$row['sales_person'] = 'Not Assigned';
|
||||
}
|
||||
|
||||
// Assign the pre-fetched data
|
||||
$row['heads'] = $heads;
|
||||
$row['admins'] = $admins;
|
||||
$row['buisness_team'] = $businessTeam;
|
||||
}
|
||||
|
||||
|
||||
return $data;
|
||||
}
|
||||
public function getClientInstallmentDetails_olds()
|
||||
{
|
||||
|
||||
$builder = $this->db->table("bds_installment_payment_details bipd")
|
||||
|
||||
@ -1177,7 +1177,7 @@ table.dataTable tbody td {
|
||||
var student_id = $(this).attr('data-id');
|
||||
$.get('<?php echo base_url('user/deactive/');?>'+student_id, function (data) {
|
||||
console.log(data);
|
||||
toastr.success('User removed successfully', 'success');
|
||||
toastr.success('User removed successfully', 'Success');
|
||||
window.location.reload()
|
||||
})
|
||||
}
|
||||
|
||||
@ -182,9 +182,9 @@
|
||||
console.log('Upload successful:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, "SUCCESS");
|
||||
toastr.success(response.message, "Success");
|
||||
} else {
|
||||
toastr.error(response.message, "ERROR");
|
||||
toastr.error(response.message, "Error");
|
||||
}
|
||||
|
||||
// Reset form
|
||||
@ -222,7 +222,7 @@
|
||||
// Check file size (optional - set max size as needed, e.g., 10MB)
|
||||
var maxSize = 10 * 1024 * 1024; // 10MB in bytes
|
||||
if (file.size > maxSize) {
|
||||
toastr.warning('File size should not exceed 10MB');
|
||||
toastr.warning('File size should not exceed 10MB', 'Warning');
|
||||
$(this).val(''); // Clear the input
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -187,7 +187,7 @@
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.warning(res.message, 'WARNING');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
|
||||
//this function for reset the form values after submitting the form or closing the form
|
||||
@ -214,7 +214,7 @@
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}
|
||||
toastr.error('An error occurred while adding the CD account number.', 'ERROR');
|
||||
toastr.error('An error occurred while adding the CD account number.', 'Error');
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -338,13 +338,13 @@
|
||||
$('#cd_client_id').val('').select2();
|
||||
$('#insurer_id_for_cd').val('').select2();
|
||||
$('#insurer_branch_id').val('').select2();
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@ -312,7 +312,7 @@ table.dataTable thead th {
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
})
|
||||
|
||||
@ -381,10 +381,10 @@ table.dataTable thead th {
|
||||
// console.log(res.status == true);
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('CD removed successfully.', 'success');
|
||||
toastr.success('CD removed successfully.', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove CD.', 'warning');
|
||||
toastr.warning('Failed to remove CD.', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@ -235,7 +235,7 @@
|
||||
|
||||
if(client_id){
|
||||
if(!client_policy_id){
|
||||
toastr.warning('Please select the client policy', 'WARNING');
|
||||
toastr.warning('Please select the client policy', 'Warning');
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -280,9 +280,9 @@
|
||||
console.log('Upload successful:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, "SUCCESS");
|
||||
toastr.success(response.message, "Success");
|
||||
} else {
|
||||
toastr.error(response.message, "ERROR");
|
||||
toastr.error(response.message, "Error");
|
||||
}
|
||||
|
||||
// Reset form
|
||||
|
||||
@ -566,7 +566,7 @@
|
||||
function addDocument() {
|
||||
|
||||
if (documentConfig.is_action_freeze) {
|
||||
toastr.warning('Cannot add documents when action is frozen', 'WARNING');
|
||||
toastr.warning('Cannot add documents when action is frozen', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -591,7 +591,7 @@
|
||||
|
||||
function removeDocument(index) {
|
||||
if (documentConfig.is_action_freeze) {
|
||||
toastr.warning('Cannot remove documents when action is frozen', 'WARNING');
|
||||
toastr.warning('Cannot remove documents when action is frozen', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -599,7 +599,7 @@
|
||||
|
||||
// ❗ If document is already received, do not remove
|
||||
if (doc.document_received === true) {
|
||||
toastr.warning('Cannot remove a received document', 'WARNING');
|
||||
toastr.warning('Cannot remove a received document', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -640,7 +640,7 @@
|
||||
|
||||
const hasEmptyNames = documentConfig.docs.some(doc => !doc.document_name.trim());
|
||||
if (hasEmptyNames) {
|
||||
toastr.warning('Please fill in all document names', 'WARNING');
|
||||
toastr.warning('Please fill in all document names', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -665,15 +665,15 @@
|
||||
|
||||
if (response.status) {
|
||||
loadConfiguration(response.data);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while saving docs.', 'ERROR');
|
||||
toastr.error('An error occurred while saving docs.', 'Error');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@ -177,7 +177,7 @@
|
||||
];
|
||||
|
||||
if (!fileInput.files || !fileInput.files.length) {
|
||||
toastr.warning('Please select a file', 'WARNING');
|
||||
toastr.warning('Please select a file', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -193,7 +193,7 @@
|
||||
) {
|
||||
toastr.warning(
|
||||
'Please upload a valid file (PDF / Excel: .pdf, .xls, .xlsx, .ods)',
|
||||
'WARNING'
|
||||
'Warning'
|
||||
);
|
||||
return false;
|
||||
}
|
||||
@ -221,9 +221,9 @@
|
||||
console.log('Upload successful:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, "SUCCESS");
|
||||
toastr.success(response.message, "Success");
|
||||
} else {
|
||||
toastr.error(response.message, "ERROR");
|
||||
toastr.error(response.message, "Error");
|
||||
}
|
||||
|
||||
// Reset form
|
||||
|
||||
@ -44,6 +44,69 @@
|
||||
cursor: pointer;
|
||||
}
|
||||
</style>
|
||||
<style>
|
||||
|
||||
.switch-branch-contact {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 54px;
|
||||
height: 34px;
|
||||
}
|
||||
|
||||
.switch-branch-contact input {
|
||||
opacity: 0;
|
||||
width: 0;
|
||||
height: 0;
|
||||
}
|
||||
|
||||
.slider-branch-contact {
|
||||
position: absolute;
|
||||
cursor: pointer;
|
||||
top: 0;
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
background-color: #ccc;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
.slider-branch-contact:before {
|
||||
position: absolute;
|
||||
content: "";
|
||||
height: 19px;
|
||||
width: 19px;
|
||||
left: 4px;
|
||||
bottom: 4px;
|
||||
background-color: white;
|
||||
-webkit-transition: .4s;
|
||||
transition: .4s;
|
||||
}
|
||||
|
||||
input:checked + .slider-branch-contact {
|
||||
background-color: #00999E;
|
||||
}
|
||||
|
||||
input:focus + .slider-branch-contact {
|
||||
box-shadow: 0 0 1px #00999E;
|
||||
}
|
||||
|
||||
input:checked + .slider-branch-contact:before {
|
||||
-webkit-transform: translateX(26px);
|
||||
-ms-transform: translateX(26px);
|
||||
transform: translateX(26px);
|
||||
}
|
||||
|
||||
/* Rounded sliders */
|
||||
.slider-branch-contact.round-branch-contact {
|
||||
border-radius: 34px;
|
||||
}
|
||||
|
||||
.slider-branch-contact.round-branch-contact:before {
|
||||
border-radius: 50%;
|
||||
}
|
||||
</style>
|
||||
|
||||
|
||||
<div class="tab-pane fade" id="branch-tab">
|
||||
<input type="hidden" id="client_id_for_client_branch" value="<?= isset($client['id']) ? $client['id'] : '' ?>" />
|
||||
@ -162,12 +225,12 @@
|
||||
</select>
|
||||
</div>
|
||||
<div class="form-group col-md-4">
|
||||
<label class="switch" style="position: relative;top: 43px;left: 20px;">
|
||||
<label class="switch-branch-contact" style="position: relative;top: 43px;left: 20px;">
|
||||
<input id="sez" type="checkbox" name="sez">
|
||||
<span class="slider round" style="height: 27px;"></span>
|
||||
<span class="slider-branch-contact round-branch-contact" style="height: 27px;"></span>
|
||||
</label>
|
||||
|
||||
<label for="inception_type" style="position: relative;bottom: 5px;left: 85px;">Enable SEZ</label>
|
||||
<label for="sez" style="position: relative;bottom: 5px;left: 85px;">Enable SEZ</label>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -495,6 +558,36 @@ $("#branch_form").submit(function(event) {
|
||||
if(xhr.status === 409){
|
||||
alert('The Current Branch is Already Existing..!!');
|
||||
}
|
||||
// if (xhr.status === 400) {
|
||||
// let response = JSON.parse(xhr.responseText);
|
||||
// if (response.errors) {
|
||||
// let errorMessages = "";
|
||||
// $.each(response.errors, function (field, message) {
|
||||
// errorMessages += `• ${message}<br>`;
|
||||
// });
|
||||
// toastr.error(errorMessages, 'Validation Error', { "allowHtml": true });
|
||||
// } else {
|
||||
// toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
// }
|
||||
// }
|
||||
if (xhr.status === 400) {
|
||||
let response = JSON.parse(xhr.responseText);
|
||||
let errorMessages = "";
|
||||
let seenMessages = []; // Array to store unique messages
|
||||
if (response.errors) {
|
||||
$.each(response.errors, function (field, message) {
|
||||
// Only add the message if it hasn't been seen before
|
||||
if (!seenMessages.includes(message)) {
|
||||
errorMessages += `• ${message}<br>`;
|
||||
seenMessages.push(message); // Mark this message as "seen"
|
||||
}
|
||||
});
|
||||
|
||||
toastr.error(errorMessages, 'Validation Error', { "allowHtml": true });
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}
|
||||
}, 300);
|
||||
},
|
||||
complete: function() {
|
||||
@ -967,7 +1060,7 @@ function validateInput(input, table, field, submitButId){
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('')
|
||||
$('#' + submitButId).prop('disabled', true);
|
||||
} else{
|
||||
@ -1003,7 +1096,7 @@ function validateDuplicateByClientBranch(input, field, submitButId) {
|
||||
if (isLocalDuplicate) {
|
||||
console.log(`r u n Local`);
|
||||
console.log(`duplicate found for ${field}`);
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$('#' + submitButId).prop('disabled', true);
|
||||
return;
|
||||
}
|
||||
@ -1030,7 +1123,7 @@ function validateDuplicateByClientBranch(input, field, submitButId) {
|
||||
if (response.isDuplicate) {
|
||||
console.log(`r u n Server`);
|
||||
console.log(`duplicate found for ${field}`);
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$('#' + submitButId).prop('disabled', true);
|
||||
} else {
|
||||
console.log(`No duplicate for ${field}`);
|
||||
@ -1075,13 +1168,13 @@ function checkAllFieldsValid(submitButId) {
|
||||
$('#' + submitButId).prop('disabled', true);
|
||||
// show correct message based on what’s duplicated
|
||||
if (emailDuplicates && mobileDuplicates) {
|
||||
toastr.warning("Email and Mobile values are duplicate!", "WARNING");
|
||||
toastr.warning("Email and Mobile values are duplicate!", "Warning");
|
||||
console.log('Both Email and Mobile duplicates');
|
||||
} else if (emailDuplicates) {
|
||||
toastr.warning("Email duplicate!", "WARNING");
|
||||
toastr.warning("Email duplicate!", "Warning");
|
||||
console.log('Cross Check Email duplicates');
|
||||
} else if (mobileDuplicates) {
|
||||
toastr.warning("Mobile duplicate!", "WARNING");
|
||||
toastr.warning("Mobile duplicate!", "Warning");
|
||||
console.log('Cross Check Mobile duplicates');
|
||||
}
|
||||
console.log(`btn Dis - true`);
|
||||
@ -1127,9 +1220,9 @@ function removeLevelContacts(id){
|
||||
|
||||
console.log('Data fetched successfully:', response);
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
|
||||
@ -157,7 +157,7 @@
|
||||
$('#tbody').append(res.data);
|
||||
toastr.success('File uploaded successfully', 'Success');
|
||||
}else{
|
||||
toastr.warning('File uploaded failed', 'WARNING');
|
||||
toastr.warning('File uploaded failed', 'Warning');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -165,7 +165,7 @@
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}
|
||||
});
|
||||
});
|
||||
@ -211,7 +211,7 @@
|
||||
$('#other_docs').append(res.data);
|
||||
toastr.success('File uploaded successfully', 'Success');
|
||||
}else{
|
||||
toastr.warning('File uploaded failed', 'WARNING');
|
||||
toastr.warning('File uploaded failed', 'Warning');
|
||||
}
|
||||
|
||||
$('#kyc_form').trigger('reset');
|
||||
@ -221,7 +221,7 @@
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -346,7 +346,7 @@
|
||||
}
|
||||
|
||||
// Invalid format
|
||||
toastr.warning('Invalid file format. Only PDF or Image files are allowed.', 'WARNING!');
|
||||
toastr.warning('Invalid file format. Only PDF or Image files are allowed.', 'Warning');
|
||||
$(fileInput).val(''); // clear file
|
||||
return false; // Invalid
|
||||
}
|
||||
|
||||
@ -489,7 +489,7 @@ $(document).ready(function()
|
||||
|
||||
// if(res){
|
||||
// if (res.status == true) {
|
||||
// toastr.success('Client removed successfully.', 'success');
|
||||
// toastr.success('Client removed successfully.', 'Success');
|
||||
// location.reload();
|
||||
// } else {
|
||||
// Swal.fire({
|
||||
@ -497,7 +497,7 @@ $(document).ready(function()
|
||||
// text: res.message,
|
||||
// icon: "warning"
|
||||
// });
|
||||
// // toastr.warning(res.message, 'warning');
|
||||
// // toastr.warning(res.message, 'Warning');
|
||||
// }
|
||||
// }
|
||||
// },
|
||||
@ -554,15 +554,15 @@ function removeClient(element)
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status == true) {
|
||||
toastr.success(res.message, 'success');
|
||||
toastr.success(res.message, 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
Swal.fire({
|
||||
title: "warning!",
|
||||
title: "Warning!",
|
||||
text: res.message,
|
||||
icon: "warning"
|
||||
});
|
||||
// toastr.warning(res.message, 'warning');
|
||||
// toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -655,10 +655,10 @@ function featchClient(){
|
||||
+ '?cd_amt=' + (res.cd_amount ?? 0)
|
||||
+ '&client_policy_id=' + res.client_policy_id
|
||||
+ '#police-tab';
|
||||
toastr.success(res.message, 'SUCCESS')
|
||||
toastr.success(res.message, 'Success')
|
||||
window.location.href = client_url
|
||||
}else{
|
||||
toastr.success(res.message, 'WARNING')
|
||||
toastr.warning(res.message, 'Warning')
|
||||
}
|
||||
|
||||
$('.close').click()
|
||||
|
||||
@ -464,7 +464,7 @@
|
||||
|
||||
if (check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('Please Add the Client!', 'warning', {
|
||||
toastr.warning('Please Add the Client!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
@ -481,7 +481,7 @@
|
||||
|
||||
if (check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0) {
|
||||
$('#relation_form').hide();
|
||||
toastr.warning('Please Add the Client!', 'warning', {
|
||||
toastr.warning('Please Add the Client!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
@ -495,7 +495,7 @@
|
||||
|
||||
if (check_client_id == '' || check_client_id == null || check_client_id == 0) {
|
||||
$('#BtnAdd').hide();
|
||||
toastr.warning('Please Add the Client!', 'warning', {
|
||||
toastr.warning('Please Add the Client!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
@ -512,7 +512,7 @@
|
||||
|
||||
if (check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('Please Add the Client!', 'warning', {
|
||||
toastr.warning('Please Add the Client!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
@ -529,7 +529,7 @@
|
||||
|
||||
if (check_client_id[0].value == '' || check_client_id[0].value == null || check_client_id[0].value == 0) {
|
||||
$('#notification-tab').hide();
|
||||
toastr.warning('Please Add the Client!', 'warning', {
|
||||
toastr.warning('Please Add the Client!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
@ -719,9 +719,9 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
console.error(response.message, 'WARNING');
|
||||
console.error(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('--- AJAX Error Details ---');
|
||||
@ -813,7 +813,7 @@
|
||||
if (response.status === true) {
|
||||
$('#hr_access_append_area').empty();
|
||||
$('#hr_access_append_area').append(response.data)
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
console.error(response.message, 'WARNING');
|
||||
}
|
||||
|
||||
@ -59,9 +59,9 @@ $(document).ready(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
if (res.status == true) {
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(res.message, 'WARNING');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@ -1837,7 +1837,7 @@ input:checked + .slider_blue::before {
|
||||
// //console.log(res.data.length);
|
||||
|
||||
if (res.data.length == 0) {
|
||||
toastr.warning('The client does not have any branches.', 'warning');
|
||||
toastr.warning('The client does not have any branches.', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1978,7 +1978,7 @@ input:checked + .slider_blue::before {
|
||||
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('Policy removed successfully.', 'success');
|
||||
toastr.success('Policy removed successfully.', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
Swal.fire({
|
||||
@ -1986,7 +1986,7 @@ input:checked + .slider_blue::before {
|
||||
text: res.message,
|
||||
icon: "warning"
|
||||
});
|
||||
// toastr.warning('Failed to remove policy', 'warning');
|
||||
// toastr.warning('Failed to remove policy', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -2022,7 +2022,7 @@ input:checked + .slider_blue::before {
|
||||
console.log(res);
|
||||
if (res.status == true) {
|
||||
|
||||
toastr.warning(res.message, 'warning');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
$('#policy_no').val('');
|
||||
|
||||
}else{
|
||||
@ -2300,10 +2300,10 @@ input:checked + .slider_blue::before {
|
||||
|
||||
if(res.status == true){
|
||||
let client_url = '<?= base_url('client/list/') ?>' + res.client_id + '?client_policy_id=' + res.client_policy_id+'#police-tab';
|
||||
toastr.success(res.message, 'SUCCESS')
|
||||
toastr.success(res.message, 'Success')
|
||||
window.location.href = client_url;
|
||||
}else{
|
||||
toastr.success(res.message, 'WARNING');
|
||||
toastr.success(res.message, 'INFO');
|
||||
}
|
||||
|
||||
$('.close').click()
|
||||
|
||||
@ -510,11 +510,11 @@
|
||||
$('#commission_upload_form')[0].reset();
|
||||
|
||||
if (response.code === 200 && response.status === true) {
|
||||
toastr.success('File upload success', 'SUCCESS');
|
||||
toastr.success('File upload success', 'Success');
|
||||
} else if (response.code === 404 && response.status === false) {
|
||||
toastr.error(response.message, 'FAILED');
|
||||
toastr.error(response.message, 'Failed');
|
||||
} else {
|
||||
toastr.error('Something went wrong! Try later', 'ERROR');
|
||||
toastr.error('Something went wrong! Try later', 'Error');
|
||||
}
|
||||
|
||||
$('.close').click();
|
||||
@ -527,7 +527,7 @@
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error("Request failed:", status, error);
|
||||
toastr.error('Something went wrong! Try later', 'ERROR');
|
||||
toastr.error('Something went wrong! Try later', 'Error');
|
||||
|
||||
$('.close').click();
|
||||
$('.loader').fadeOut();
|
||||
|
||||
@ -721,11 +721,11 @@
|
||||
console.log('rules type', typeof rules);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
// rules = response.data;
|
||||
displayRules(response.data);
|
||||
}else{
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -739,7 +739,7 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
|
||||
});
|
||||
@ -867,11 +867,11 @@
|
||||
console.log('rules type', typeof rules);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
// rules = response.data;
|
||||
displayRules(response.data);
|
||||
}else{
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -885,7 +885,7 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
}
|
||||
|
||||
@ -1033,7 +1033,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
@ -99,10 +99,10 @@ $("#drive_file_upload_form").submit(function(event) {
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(res.status == true){
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
appendFileTableBody(res.data.pt_files);
|
||||
}else{
|
||||
toastr.warning(res.message, 'WARNING');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
|
||||
$('#drive_file_upload_form')[0].reset();
|
||||
|
||||
@ -468,7 +468,7 @@
|
||||
$('#gender').prop('disabled', false);
|
||||
$('#dob').prop('disabled', false);
|
||||
|
||||
toastr.warning(res.message, 'WARNING');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -515,7 +515,7 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(response.status == true){
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
|
||||
$('.close').click();
|
||||
|
||||
@ -531,7 +531,7 @@
|
||||
fetchEmpolyeeList();
|
||||
|
||||
}else{
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -557,7 +557,7 @@
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}else{ toastr.warning('Error uploading file', 'WARNING'); }
|
||||
}else{ toastr.warning('Error uploading file', 'Warning'); }
|
||||
},
|
||||
complete: function() {
|
||||
$('.loader').fadeOut();
|
||||
@ -597,9 +597,9 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(res.status == true){
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
}else{
|
||||
toastr.error(res.message, 'ERROR');
|
||||
toastr.error(res.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -638,7 +638,7 @@
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, data, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$("#btnSubmit").prop('disabled', true);
|
||||
}else{
|
||||
$("#btnSubmit").prop('disabled', false);
|
||||
@ -737,12 +737,12 @@
|
||||
showModal();
|
||||
} else {
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
@ -777,11 +777,11 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status == true && response.data.eCardDownload) {
|
||||
console.log(response.data.message || 'Initiating successafully', 'SUCCESS');
|
||||
console.log(response.data.message || 'Initiating successfully', 'Success');
|
||||
const newTab = window.open(response.data.eCardDownload, '_blank');
|
||||
if (newTab) newTab.focus();
|
||||
} else {
|
||||
toastr.error(response.data.message || 'Unable to fetch e-card', 'ERROR');
|
||||
toastr.error(response.data.message || 'Unable to fetch e-card', 'Error');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -790,7 +790,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
|
||||
@ -817,10 +817,10 @@
|
||||
function reGenerateEcardForSingleFamily(client_policy_id, emp_code)
|
||||
{
|
||||
if(!client_policy_id){
|
||||
toastr.warning('Failed to re-Generate E-card', 'WARNING');
|
||||
toastr.warning('Failed to re-Generate E-card', 'Warning');
|
||||
}
|
||||
if(!emp_code){
|
||||
toastr.warning('Failed to re-Generate E-card', 'WARNING');
|
||||
toastr.warning('Failed to re-Generate E-card', 'Warning');
|
||||
}
|
||||
|
||||
console.log({client_policy_id, emp_code});
|
||||
@ -842,9 +842,9 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.dataStatus == true) {
|
||||
toastr.success(response.message || 'Initiating successafully.', 'SUCCESS');
|
||||
toastr.success(response.message || 'Initiating successfully.', 'Success');
|
||||
} else {
|
||||
toastr.warning(response.status || 'Unable to regenerate e-card.', 'WARNING');
|
||||
toastr.warning(response.status || 'Unable to regenerate e-card.', 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -853,7 +853,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('Unable to regenerate e-card.', 'ERROR');
|
||||
toastr.error('Unable to regenerate e-card.', 'Error');
|
||||
});
|
||||
|
||||
|
||||
|
||||
@ -739,9 +739,9 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status == false) {
|
||||
toastr.info(res.message, 'INFO');
|
||||
toastr.info(res.message, 'Info');
|
||||
} else {
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
}
|
||||
|
||||
},
|
||||
|
||||
@ -182,7 +182,7 @@ $('#file_upload').hide();
|
||||
$(document).ready(function() {
|
||||
|
||||
<?php if (session()->has('success1')): ?>
|
||||
toastr.success('<?= session()->getFlashdata('success1') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('success1') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
// Initialize select2
|
||||
$("#client_id").select2();
|
||||
@ -217,22 +217,22 @@ $(document).ready(function() {
|
||||
|
||||
if(checkValues() == 'client'){
|
||||
|
||||
toastr.warning('Client is Required', 'warning')
|
||||
toastr.warning('Client is Required', 'Warning')
|
||||
return false;
|
||||
|
||||
}else if(checkValues() == 'policy'){
|
||||
|
||||
toastr.warning('Policy is Required', 'warning')
|
||||
toastr.warning('Policy is Required', 'Warning')
|
||||
return false;
|
||||
|
||||
}else if(checkValues() == 'branch'){
|
||||
|
||||
toastr.warning('Branch is Required', 'warning')
|
||||
toastr.warning('Branch is Required', 'Warning')
|
||||
return false;
|
||||
|
||||
}else if(checkValues() == 'event'){
|
||||
|
||||
toastr.warning('Event is Required', 'warning')
|
||||
toastr.warning('Event is Required', 'Warning')
|
||||
return false;
|
||||
}else{
|
||||
|
||||
@ -261,7 +261,7 @@ $(document).ready(function() {
|
||||
// $('#policy_id').mouseover();
|
||||
console.log('required');
|
||||
// alert('please choose policy for this uploaing event ');
|
||||
toastr.warning('please choose policy for this uploaing event', 'warning')
|
||||
toastr.warning('please choose policy for this uploaing event', 'Warning')
|
||||
return false;
|
||||
|
||||
} else {
|
||||
@ -833,7 +833,7 @@ $('#fetch_enrolled_data').click(function()
|
||||
var action = $('#upload-action-type').val();
|
||||
// console.log(client_id + '-' + policy_id);
|
||||
if (client_id == '0' || policy_id == '0') {
|
||||
toastr.warning('please select the client and policy for this uploaing event', 'warning')
|
||||
toastr.warning('please select the client and policy for this uploaing event', 'Warning')
|
||||
$('#full-width-modal').modal('hide');
|
||||
return;
|
||||
}
|
||||
@ -1175,7 +1175,7 @@ function initiateWellnessOnboard(e)
|
||||
}, 300);
|
||||
|
||||
console.log('initiate wellness response', response);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
$('#onboard_div').hide();
|
||||
|
||||
},
|
||||
@ -1261,9 +1261,9 @@ $(document).on('click', '#confirmYes', function() {
|
||||
console.log('API response:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -1309,9 +1309,9 @@ $(document).on('click', '#confirmNo', function() {
|
||||
console.log('API response:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
|
||||
@ -428,7 +428,7 @@ $('#uploadForm').submit(function() {
|
||||
.data !== "") {
|
||||
toastr.success(
|
||||
'File upload successs, Data validation is in-progress',
|
||||
'success');
|
||||
'Success');
|
||||
$('.close').click()
|
||||
window.location.reload(true);
|
||||
} else if (response.code === 404 && response.dataStatus === false) {
|
||||
|
||||
@ -364,10 +364,10 @@
|
||||
// $('#modalLabel').text('Edit Front End Content');
|
||||
// appendEditData(response.data);
|
||||
// }else{
|
||||
// toastr.success(response.message, 'SUCCESS');
|
||||
// toastr.success(response.message, 'Success');
|
||||
// }
|
||||
// } else {
|
||||
// toastr.warning(response.message, 'WARNING');
|
||||
// toastr.warning(response.message, 'Warning');
|
||||
// }
|
||||
|
||||
// $('.loader').fadeOut();
|
||||
|
||||
@ -451,7 +451,7 @@
|
||||
.data !== "") {
|
||||
toastr.success(
|
||||
'File upload successs, Data validation is in-progress',
|
||||
'success');
|
||||
'Success');
|
||||
$('.close').click()
|
||||
window.location.reload(true);
|
||||
} else if (response.code === 404 && response.dataStatus === false) {
|
||||
|
||||
@ -564,7 +564,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -824,10 +824,10 @@ function toggleAddButton() {
|
||||
// console.log(res.status == true);
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('Insurer branch removed successfully', 'success');
|
||||
toastr.success('Insurer branch removed successfully', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove insurer branch', 'warning');
|
||||
toastr.warning('Failed to remove insurer branch', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -836,7 +836,7 @@ function toggleAddButton() {
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove insurer branch', 'warning');
|
||||
toastr.warning('Failed to remove insurer branch', 'Warning');
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@ -474,9 +474,9 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(res.status == false){
|
||||
toastr.error(res.message, 'ERROR');
|
||||
toastr.error(res.message, 'Error');
|
||||
}else{
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
}
|
||||
|
||||
window.location.reload(true);
|
||||
@ -730,9 +730,9 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(res.status == false){
|
||||
toastr.error(res.message, 'ERROR');
|
||||
toastr.error(res.message, 'Error');
|
||||
}else{
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
}
|
||||
|
||||
window.location.reload(true);
|
||||
|
||||
@ -319,10 +319,10 @@
|
||||
// console.log(res.status == true);
|
||||
if (res) {
|
||||
if (res.status == true) {
|
||||
toastr.success('Insurer removed successfully', 'success');
|
||||
toastr.success('Insurer removed successfully', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove insurer', 'warning');
|
||||
toastr.warning('Failed to remove insurer', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -331,7 +331,7 @@
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove insurer', 'warning');
|
||||
toastr.warning('Failed to remove insurer', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -75,7 +75,7 @@
|
||||
|
||||
if (check_insurer_id[0].value == '' || check_insurer_id[0].value == null || check_insurer_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('First Add the Insurer!', 'warning', {
|
||||
toastr.warning('First Add the Insurer!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
|
||||
@ -588,7 +588,7 @@
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
$('#import_excel_btn').hide();
|
||||
@ -632,7 +632,7 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
$$("#import_export_excel_form")[0].reset()
|
||||
toastr.success('File Download successs', 'success');
|
||||
toastr.success('File Download successs', 'Success');
|
||||
|
||||
} else if (response.code === 404 && response.status === false) {
|
||||
|
||||
@ -1132,12 +1132,12 @@
|
||||
|
||||
// Only show message once and if status is false
|
||||
if (get_cd_balance?.cd_balance === false && !messageShown) {
|
||||
// toastr.warning('Insufficient CD Balance deducated. Please wait the file will be downloaded', 'WARNING');
|
||||
// toastr.warning('Insufficient CD Balance deducated. Please wait the file will be downloaded', 'Warning');
|
||||
var message1 = 'Insufficient CD Balance deducted. Please wait the file will be downloaded<br>' +
|
||||
'<strong>CD Amount:</strong> ₹' + (cdAmount || 0) + '<br>' +
|
||||
'<strong>Total Amount:</strong> ₹' + (excel_file_amt || 0);
|
||||
|
||||
toastr.warning(message1, 'WARNING', {
|
||||
toastr.warning(message1, 'Warning', {
|
||||
allowHtml: true,
|
||||
timeOut: 10000,
|
||||
extendedTimeOut: 3000
|
||||
@ -1190,7 +1190,7 @@
|
||||
|
||||
toastr.warning(
|
||||
`Insufficient CD Balance.<br>Balance: ₹${cd_balance_info.cd_amount}`,
|
||||
'WARNING',
|
||||
'Warning',
|
||||
{ allowHtml: true }
|
||||
);
|
||||
|
||||
@ -1288,7 +1288,7 @@
|
||||
|
||||
for (let c of checks) {
|
||||
if (!c.val || c.val == 0) {
|
||||
toastr.warning(c.msg, 'WARNING');
|
||||
toastr.warning(c.msg, 'Warning');
|
||||
return;
|
||||
}
|
||||
}
|
||||
@ -1310,15 +1310,15 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message || 'Initiating successafully', 'SUCCESS');
|
||||
toastr.success(response.message || 'Initiating successafully', 'Success');
|
||||
} else {
|
||||
toastr.error(response.message || 'Unable to fetch data', 'ERROR');
|
||||
toastr.error(response.message || 'Unable to fetch data', 'Error');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
|
||||
@ -1441,12 +1441,12 @@
|
||||
const selectedHRs = $('input[name="hr_emails[]"]:checked');
|
||||
|
||||
if (!mailToggle.is(':checked')) {
|
||||
toastr.warning('Please Enable the mail option.', 'WARNING');
|
||||
toastr.warning('Please Enable the mail option.', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
if (selectedHRs.length === 0) {
|
||||
toastr.warning('Please select at least one HR.', 'WARNING');
|
||||
toastr.warning('Please select at least one HR.', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1489,14 +1489,14 @@
|
||||
console.log('Response Success:', data);
|
||||
|
||||
if (data.status === true) {
|
||||
toastr.success(data.message, 'SUCCESS');
|
||||
toastr.success(data.message, 'Success');
|
||||
} else {
|
||||
toastr.warning(data.message, 'WARNING');
|
||||
toastr.warning(data.message, 'Warning');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
console.error('Response Error:', error);
|
||||
toastr.error('Something went wrong. Please try again.', 'ERROR');
|
||||
toastr.error('Something went wrong. Please try again.', 'Error');
|
||||
},
|
||||
complete: function () {
|
||||
// Reset button state
|
||||
|
||||
@ -1304,7 +1304,7 @@
|
||||
.data !== "") {
|
||||
toastr.success(
|
||||
'File upload successs',
|
||||
'success');
|
||||
'Success');
|
||||
$('.close').click();
|
||||
window.location.reload(true);
|
||||
} else if (response.code === 404 && response.dataStatus === false) {
|
||||
|
||||
@ -1090,7 +1090,7 @@ function downloadInvoicePdf(){
|
||||
function fetchPreviewInvoiceDetails(invoice_id, invoice_no){
|
||||
|
||||
if (!invoice_id) {
|
||||
toastr.warning("Invoice Id not found!", "WARNING");
|
||||
toastr.warning("Invoice Id not found!", "Warning");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@ -159,14 +159,14 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -264,7 +264,7 @@ $(document).ready(function () {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -427,7 +427,7 @@ $(document).ready(function () {
|
||||
window.location.href = '<?= base_url("master/kyc/list/") ?>' + kyc_docs_id_for_reload;
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to remove KYC docs', 'warning');
|
||||
toastr.warning('Failed to remove KYC docs', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -436,7 +436,7 @@ $(document).ready(function () {
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove KYC docs', 'warning');
|
||||
toastr.warning('Failed to remove KYC docs', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -88,7 +88,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
@ -308,12 +308,12 @@ function removeKYC(element) {
|
||||
// console.log(res.status == true);
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('KYC entity removed successfully', 'success');
|
||||
toastr.success('KYC entity removed successfully', 'Success');
|
||||
|
||||
location.reload();
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to remove KYC entity', 'warning');
|
||||
toastr.warning('Failed to remove KYC entity', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -323,7 +323,7 @@ function removeKYC(element) {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
@ -92,7 +92,7 @@
|
||||
console.log(check_policy_type_id.val());
|
||||
if (check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('First Add the KYC Entity Type!', 'warning', {
|
||||
toastr.warning('First Add the KYC Entity Type!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
|
||||
@ -213,13 +213,13 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -629,7 +629,7 @@
|
||||
var next_reminder_date = flatpickr("#next_reminder_date", {
|
||||
dateFormat: "d/m/Y",
|
||||
allowInput: false,
|
||||
maxDate: "today"
|
||||
minDate: "today"
|
||||
});
|
||||
|
||||
|
||||
@ -1111,7 +1111,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetch data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetch data.', 'Error');
|
||||
|
||||
// Hide loader
|
||||
$('.loader').fadeOut();
|
||||
|
||||
@ -513,7 +513,7 @@ if (isset($selected_lead_type)) {
|
||||
}
|
||||
|
||||
if(client_type == ""){
|
||||
toastr.warning('Please select the client type', 'WARNING');
|
||||
toastr.warning('Please select the client type', 'Warning');
|
||||
$('#client_short_name').val('')
|
||||
return;
|
||||
}
|
||||
@ -528,7 +528,7 @@ if (isset($selected_lead_type)) {
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('')
|
||||
$('#lead_form_submit_btn').prop('disabled', true);
|
||||
} else{
|
||||
@ -662,7 +662,7 @@ if (isset($selected_lead_type)) {
|
||||
function removeFileField(index, lead_file_id = null) {
|
||||
|
||||
if(index == 1){
|
||||
toastr.warning("You can't remove the first file field", 'WARNING');
|
||||
toastr.warning("You can't remove the first file field", 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -694,7 +694,7 @@ if (isset($selected_lead_type)) {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
|
||||
//remove the file field
|
||||
const field = document.getElementById(`fileField_${index}`);
|
||||
@ -703,7 +703,7 @@ if (isset($selected_lead_type)) {
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.error(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -714,7 +714,7 @@ if (isset($selected_lead_type)) {
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
}else{
|
||||
|
||||
@ -525,7 +525,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetch data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetch data.', 'Error');
|
||||
|
||||
// Hide loader
|
||||
$('.loader').fadeOut();
|
||||
@ -629,14 +629,22 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
if (xhr.status === 400) {
|
||||
let response = JSON.parse(xhr.responseText);
|
||||
if (response.errors) {
|
||||
$.each(response.errors, function (field, message) {
|
||||
toastr.warning(message, 'Validation Error');
|
||||
});
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
let response = JSON.parse(xhr.responseText);
|
||||
let errorMessages = "";
|
||||
let seenMessages = []; // Array to store unique messages
|
||||
if (response.errors) {
|
||||
$.each(response.errors, function (field, message) {
|
||||
// Only add the message if it hasn't been seen before
|
||||
if (!seenMessages.includes(message)) {
|
||||
errorMessages += `• ${message}<br>`;
|
||||
seenMessages.push(message); // Mark this message as "seen"
|
||||
}
|
||||
});
|
||||
|
||||
toastr.error(errorMessages, 'Validation Error', { "allowHtml": true });
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@ -142,7 +142,7 @@
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
isGSTValidating = false;
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('');
|
||||
isGSTValid = false;
|
||||
$('#client_add_modal_submit_btn').prop('disabled', true);
|
||||
|
||||
@ -143,7 +143,7 @@
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
isGSTValidating = false;
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('');
|
||||
isGSTValid = false;
|
||||
$('#client_add_modal_submit_btn').prop('disabled', true);
|
||||
|
||||
@ -197,10 +197,10 @@
|
||||
// $('#modalLabel').text('Edit Branch');
|
||||
// appendEditData(response.data);
|
||||
// }else{
|
||||
// toastr.success(response.message, 'SUCCESS');
|
||||
// toastr.success(response.message, 'Success');
|
||||
// }
|
||||
// } else {
|
||||
// toastr.warning(response.message, 'WARNING');
|
||||
// toastr.warning(response.message, 'Warning');
|
||||
// }
|
||||
|
||||
// $('.loader').fadeOut();
|
||||
|
||||
@ -993,7 +993,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1037,7 +1037,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1088,7 +1088,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1131,7 +1131,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1175,7 +1175,7 @@
|
||||
// {
|
||||
// $('.loader').fadeOut();
|
||||
// $('.loader-mask').delay(350).fadeOut('slow');
|
||||
// toastr.warning('Something Wrong!', 'warning');
|
||||
// toastr.warning('Something Wrong!', 'Warning');
|
||||
// }, 1000);
|
||||
// }
|
||||
// });
|
||||
@ -1219,7 +1219,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1273,7 +1273,7 @@
|
||||
{
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1361,7 +1361,7 @@ template_name = '';
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -1433,13 +1433,13 @@ template_name = '';
|
||||
console.log('Parsed respond', respond)
|
||||
|
||||
if(respond.status == 'success'){
|
||||
toastr.success(respond.message, 'SUCCESS')
|
||||
toastr.success(respond.message, 'Success')
|
||||
}else{
|
||||
toastr.warning(respond.message, 'WARNING')
|
||||
toastr.warning(respond.message, 'Warning')
|
||||
}
|
||||
|
||||
}else{
|
||||
toastr.warning('Failed to sent mail', 'WARNING')
|
||||
toastr.warning('Failed to sent mail', 'Warning')
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -1454,16 +1454,16 @@ template_name = '';
|
||||
|
||||
}else{
|
||||
let alert_msg = 'Template ID not exist'
|
||||
toastr.warning(alert_msg, 'WARNING');
|
||||
toastr.warning(alert_msg, 'Warning');
|
||||
}
|
||||
|
||||
}else{
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
}else{
|
||||
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
}
|
||||
@ -1600,10 +1600,10 @@ template_name = '';
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(response.status == true){
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
addHTMLInput(response.data);
|
||||
}else{
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1620,7 +1620,7 @@ template_name = '';
|
||||
console.error('Response Text: ', xhr.responseText);
|
||||
}
|
||||
|
||||
toastr.warning('Error uploading file', 'WARNING');
|
||||
toastr.warning('Error uploading file', 'Warning');
|
||||
console.error('Upload error:', error);
|
||||
},
|
||||
complete: function() {
|
||||
@ -1652,10 +1652,10 @@ template_name = '';
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(res.status == true){
|
||||
toastr.success(res.message, 'SUCCESS')
|
||||
toastr.success(res.message, 'Success')
|
||||
addHTMLInput(res.data);
|
||||
}else{
|
||||
toastr.warning(res.message, 'WARNING')
|
||||
toastr.warning(res.message, 'Warning')
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -1954,7 +1954,7 @@ $('#account_maneger_summary_mail_form').submit(function (event) {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
@ -1170,13 +1170,13 @@
|
||||
console.log('Parsed respond', respond)
|
||||
|
||||
if (respond.status == 'success') {
|
||||
toastr.success(respond.message, 'SUCCESS')
|
||||
toastr.success(respond.message, 'Success')
|
||||
} else {
|
||||
toastr.warning(respond.message, 'WARNING')
|
||||
toastr.warning(respond.message, 'Warning')
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to sent mail', 'WARNING')
|
||||
toastr.warning('Failed to sent mail', 'Warning')
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1191,16 +1191,16 @@
|
||||
|
||||
} else {
|
||||
let alert_msg = 'Template ID not exist'
|
||||
toastr.warning(alert_msg, 'WARNING');
|
||||
toastr.warning(alert_msg, 'Warning');
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
}
|
||||
@ -1337,10 +1337,10 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
addHTMLInput(response.data);
|
||||
} else {
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1357,7 +1357,7 @@
|
||||
console.error('Response Text: ', xhr.responseText);
|
||||
}
|
||||
|
||||
toastr.warning('Error uploading file', 'WARNING');
|
||||
toastr.warning('Error uploading file', 'Warning');
|
||||
console.error('Upload error:', error);
|
||||
},
|
||||
complete: function() {
|
||||
@ -1389,10 +1389,10 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status == true) {
|
||||
toastr.success(res.message, 'SUCCESS')
|
||||
toastr.success(res.message, 'Success')
|
||||
addHTMLInput(res.data);
|
||||
} else {
|
||||
toastr.warning(res.message, 'WARNING')
|
||||
toastr.warning(res.message, 'Warning')
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1469,13 +1469,13 @@
|
||||
console.log('Parsed respond', respond)
|
||||
|
||||
if (respond.status == 'success') {
|
||||
toastr.success(respond.message, 'SUCCESS')
|
||||
toastr.success(respond.message, 'Success')
|
||||
} else {
|
||||
toastr.warning(respond.message, 'WARNING')
|
||||
toastr.warning(respond.message, 'Warning')
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to sent mail', 'WARNING')
|
||||
toastr.warning('Failed to sent mail', 'Warning')
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1490,16 +1490,16 @@
|
||||
|
||||
} else {
|
||||
let alert_msg = 'Template ID not exist , Kindly Save to Send Test Mails ..!!'
|
||||
toastr.warning(alert_msg, 'WARNING');
|
||||
toastr.warning(alert_msg, 'Warning');
|
||||
}
|
||||
|
||||
} else {
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
} else {
|
||||
|
||||
toastr.warning('Please enter the valid mail', 'WARNING');
|
||||
toastr.warning('Please enter the valid mail', 'Warning');
|
||||
}
|
||||
|
||||
}
|
||||
@ -1552,9 +1552,9 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status === true) {
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
} else {
|
||||
toastr.warning('Failed to send mail', 'WARNING');
|
||||
toastr.warning('Failed to send mail', 'Warning');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1754,10 +1754,10 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
addHTMLInput(response.data);
|
||||
} else {
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -1774,7 +1774,7 @@
|
||||
console.error('Response Text: ', xhr.responseText);
|
||||
}
|
||||
|
||||
toastr.warning('Error uploading file', 'WARNING');
|
||||
toastr.warning('Error uploading file', 'Warning');
|
||||
console.error('Upload error:', error);
|
||||
},
|
||||
complete: function() {
|
||||
@ -1808,10 +1808,10 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status == true) {
|
||||
toastr.success(res.message, 'SUCCESS')
|
||||
toastr.success(res.message, 'Success')
|
||||
addHTMLInput(res.data);
|
||||
} else {
|
||||
toastr.warning(res.message, 'WARNING')
|
||||
toastr.warning(res.message, 'Warning')
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -2131,7 +2131,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2185,7 +2185,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2239,7 +2239,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2293,7 +2293,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2348,7 +2348,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2402,7 +2402,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2457,7 +2457,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2512,7 +2512,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2649,7 +2649,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2681,7 +2681,7 @@
|
||||
let template_id = $btn.data('id');
|
||||
let test_mail = "xyz@gmail.com";
|
||||
if(!template_id){
|
||||
toastr.warning('Template ID not exist', 'WARNING');
|
||||
toastr.warning('Template ID not exist', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -2708,7 +2708,7 @@
|
||||
$btn.data('previewing', true);
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to load content', 'WARNING');
|
||||
toastr.warning('Failed to load content', 'Warning');
|
||||
}
|
||||
},
|
||||
error: function(xhr){
|
||||
|
||||
@ -479,7 +479,7 @@
|
||||
console.error('Response Text: ', xhr.responseText);
|
||||
}
|
||||
|
||||
toastr.warning('Error uploading file', 'WARNING');
|
||||
toastr.warning('Error uploading file', 'Werning');
|
||||
console.error('Upload error:', error);
|
||||
},
|
||||
complete: function() {
|
||||
|
||||
@ -381,7 +381,7 @@
|
||||
|
||||
function fetchUtrDetails(invoice_id, invoice_no){
|
||||
if (!invoice_id) {
|
||||
toastr.warning("Invoice Id not found!", "WARNING");
|
||||
toastr.warning("Invoice Id not found!", "Warning");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -413,7 +413,7 @@
|
||||
$('#modal_body').append(response.data);
|
||||
|
||||
if (response.status == false) {
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'WARNING');
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -424,14 +424,14 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
}
|
||||
|
||||
function fetchPreviewInvoiceDetails(invoice_id, invoice_no){
|
||||
|
||||
if (!invoice_id) {
|
||||
toastr.warning("Invoice Id not found!", "WARNING");
|
||||
toastr.warning("Invoice Id not found!", "Warning");
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -470,7 +470,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
// toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
// toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
$('#invoicePreview').empty();
|
||||
$('#invoicePreview').append('<div class="text-center p-5 text-muted">No data found</div>');
|
||||
});
|
||||
|
||||
@ -157,7 +157,7 @@
|
||||
|
||||
if(!internalCall){
|
||||
if (!pos_id && !status_id && !start_date && !end_date) {
|
||||
toastr.warning("Please select any one filter!", "WARNING");
|
||||
toastr.warning("Please select any one filter!", "Warning");
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -184,7 +184,7 @@
|
||||
$('#payout_list').append(response.data);
|
||||
|
||||
if (response.status == false) {
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'WARNING');
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -197,7 +197,7 @@
|
||||
$('#payout_list').append(response.data);
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
@ -151,12 +151,12 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
$('#modal_body').empty();
|
||||
$('#modal_body').append(response.data);
|
||||
window.location.href = '<?= base_url("payout/list") ?>';
|
||||
}else{
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'WARNING');
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'Warning');
|
||||
}
|
||||
|
||||
// Re-enable button
|
||||
@ -170,7 +170,7 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
},
|
||||
complete: function() {
|
||||
$('#utr_submit_btn').prop('disabled', false).text('Add UTR');
|
||||
@ -239,9 +239,9 @@
|
||||
$('#modal_body').append(response.data);
|
||||
|
||||
if (response.status == true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
}else{
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'WARNING');
|
||||
toastr.warning(response.message || 'Unable to fetch data', 'Warning');
|
||||
}
|
||||
|
||||
$('.loader').fadeOut();
|
||||
@ -252,7 +252,7 @@
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
});
|
||||
|
||||
utrHasBeenChanged = true;
|
||||
|
||||
@ -266,7 +266,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -315,7 +315,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -385,7 +385,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -420,13 +420,13 @@ function removePolicies(element) {
|
||||
// console.log(res.status == true);
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('Policy removed successfully', 'success');
|
||||
toastr.success('Policy removed successfully', 'Success');
|
||||
// $('#branch_table').empty();
|
||||
// location.reload();
|
||||
window.location.href = '<?= base_url("master/policy/list/") ?>' + policy_id_for_reload;
|
||||
|
||||
} else {
|
||||
toastr.warning('Failed to remove policy', 'warning');
|
||||
toastr.warning('Failed to remove policy', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -435,7 +435,7 @@ function removePolicies(element) {
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove policy', 'warning');
|
||||
toastr.warning('Failed to remove policy', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -452,7 +452,7 @@
|
||||
|
||||
if (totalSI != allowedSI) {
|
||||
console.log("allowedSI : ", allowedSI, " totalSI : ", totalSI);
|
||||
toastr.error("Sum Insured Does not Match Allowed Limit", "ERROR");
|
||||
toastr.error("Sum Insured Does not Match Allowed Limit", "Error");
|
||||
return false;
|
||||
}
|
||||
// console.log("Total SI: ", totalSI);
|
||||
@ -475,7 +475,7 @@
|
||||
const totalRows = formDataSplitUp.filter(field => field.name === "building[]").length;
|
||||
|
||||
if (totalRows != policyDetailsData.location_no) {
|
||||
toastr.error("Please Enter All Risk Address", "ERROR");
|
||||
toastr.error("Please Enter All Risk Address", "Error");
|
||||
return;
|
||||
}
|
||||
// Initialize empty objects for each row
|
||||
@ -550,7 +550,7 @@
|
||||
const totalRows = formData.filter(field => field.name === "pin_code[]").length;
|
||||
|
||||
if (totalRows != policyDetailsData.location_no) {
|
||||
toastr.error("Please Enter All Risk Address", "ERROR");
|
||||
toastr.error("Please Enter All Risk Address", "Error");
|
||||
return;
|
||||
}
|
||||
// Initialize empty objects for each row
|
||||
@ -1224,7 +1224,7 @@
|
||||
}
|
||||
$('.loader').fadeIn();
|
||||
$('.loader-mask').fadeIn();
|
||||
toastr.success("Policy Information Collected ", "SUCCESS");
|
||||
toastr.success("Policy Information Collected ", "Success");
|
||||
closeModal();
|
||||
changeTerrorism(Number($("#policySI").val()));
|
||||
$('.loader').fadeOut();
|
||||
|
||||
@ -1532,7 +1532,7 @@
|
||||
});
|
||||
|
||||
} else if (gmc_policy_type_id != 'GPA' && gmc_policy_type_id != 'GMC') {
|
||||
// toastr.warning('The terms has no data ', 'warning');
|
||||
// toastr.warning('The terms has no data ', 'Warning');
|
||||
}
|
||||
|
||||
$(document).ready(function() {
|
||||
|
||||
@ -806,7 +806,7 @@
|
||||
});
|
||||
|
||||
} else if (gpa_policy_type_id != 'GPA' && gpa_policy_type_id != 'GMC') {
|
||||
// toastr.warning("This policy has no policy terms.", 'warning');
|
||||
// toastr.warning("This policy has no policy terms.", 'Warning');
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
@ -263,7 +263,7 @@ $(document).on('submit', 'form[id^="GridForm_"]', function(event) {
|
||||
console.log('checkFamiliFloatersKeysDuplicate', isEqual)
|
||||
|
||||
if(isEqual){
|
||||
toastr.warning('Family floaters alerdey exist', 'warning');
|
||||
toastr.warning('Family floaters alerdey exist', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -671,7 +671,7 @@ $(document).on('change', 'select[id^="grid_"]', function(event)
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -2003,7 +2003,7 @@ function checkDuplicate(unique_id = null)
|
||||
|
||||
if (siDuplicates) {
|
||||
// highlightDuplicates(duplicateIndices);
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2045,7 +2045,7 @@ function checkDuplicate(unique_id = null)
|
||||
|
||||
if (siDuplicates) {
|
||||
// highlightDuplicates(duplicateIndices);
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2086,7 +2086,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (ageDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2133,7 +2133,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (siDuplicates || ageDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2173,7 +2173,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (ageDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2219,7 +2219,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (siDuplicates || ageDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2266,7 +2266,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (siDuplicates || ageDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2306,7 +2306,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (duplicatesFound) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2356,7 +2356,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (duplicatesFound) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2401,7 +2401,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (duplicatesFound) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2455,7 +2455,7 @@ function checkDuplicate(unique_id = null)
|
||||
}
|
||||
|
||||
if (duplicatesFound) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2491,7 +2491,7 @@ function checkDuplicate(unique_id = null)
|
||||
|
||||
|
||||
if (siDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -2532,7 +2532,7 @@ function checkDuplicate(unique_id = null)
|
||||
|
||||
|
||||
if (siDuplicates) {
|
||||
toastr.warning('Duplicates found!', 'warning');
|
||||
toastr.warning('Duplicates found!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -3150,7 +3150,7 @@ function checkCheckboxes()
|
||||
toastr.warning('You must select at least one checkbox.', 'Warning');
|
||||
return false;
|
||||
} else if (checkedCount == uncheckedCount) {
|
||||
toastr.warning('You can not select all of the checkboxes', 'Waraning');
|
||||
toastr.warning('You can not select all of the checkboxes', 'Warning');
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@ -3596,7 +3596,7 @@ function removeTab(input, tabID, tabName)
|
||||
text: res.message,
|
||||
icon: "success"
|
||||
});
|
||||
// toastr.success('Policy removed successfully.', 'success');
|
||||
// toastr.success('Policy removed successfully.', 'Success');
|
||||
} else {
|
||||
if(res.rr_count > 0){
|
||||
Swal.fire({
|
||||
@ -3612,7 +3612,7 @@ function removeTab(input, tabID, tabName)
|
||||
});
|
||||
}
|
||||
|
||||
// toastr.warning('Failed to remove policy', 'warning');
|
||||
// toastr.warning('Failed to remove policy', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -3711,7 +3711,7 @@ function renameRackRateTab(input, unique_id = null, tabName = null)
|
||||
|
||||
$('#rack_rate_name').val(newTabName);
|
||||
|
||||
// toastr.success('Policy removed successfully.', 'success');
|
||||
// toastr.success('Policy removed successfully.', 'Success');
|
||||
} else {
|
||||
if(res.rr_count > 0){
|
||||
Swal.fire({
|
||||
@ -3730,7 +3730,7 @@ function renameRackRateTab(input, unique_id = null, tabName = null)
|
||||
|
||||
}
|
||||
|
||||
// toastr.warning('Failed to remove policy', 'warning');
|
||||
// toastr.warning('Failed to remove policy', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -4028,7 +4028,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4056,7 +4056,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4085,7 +4085,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4114,7 +4114,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4144,7 +4144,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4173,7 +4173,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4202,7 +4202,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4231,7 +4231,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4260,7 +4260,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4289,7 +4289,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4318,7 +4318,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4349,7 +4349,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
@ -4377,7 +4377,7 @@ function checkValideUnits(unique_id = null)
|
||||
console.log('checkValideUnits function uncommonValues', uncommonValues);
|
||||
|
||||
if (uncommonValues.length > 0) {
|
||||
toastr.warning('Given unit does not exist in the branch!', 'warning');
|
||||
toastr.warning('Given unit does not exist in the branch!', 'Warning');
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
|
||||
@ -203,7 +203,7 @@ function copyHeaders(unique_id) {
|
||||
|
||||
//console.log('headerString', headerString);
|
||||
navigator.clipboard.writeText(headerString).then(function() {
|
||||
toastr.success('Headers copied to clipboard', 'success');
|
||||
toastr.success('Headers copied to clipboard', 'Success');
|
||||
}, function(err) {
|
||||
toastr.error(err, 'Could not copy headers:');
|
||||
});
|
||||
@ -493,7 +493,7 @@ function generateTable(unique_id) {
|
||||
// console.log(secondKey)
|
||||
if ($('.duplicate').length > 0) {
|
||||
//console.log('test');
|
||||
toastr.warning("Duplicates found!", "warning");
|
||||
toastr.warning("Duplicates found!", "Warning");
|
||||
$('.excel_table_class').empty();
|
||||
$('.excel_textarea').val('');
|
||||
}
|
||||
|
||||
@ -775,13 +775,13 @@
|
||||
}else{
|
||||
$('#ct_type').val(1)
|
||||
// addInsurerColumn()
|
||||
toastr.warning("There is no policy inception data.", 'WARNING!');
|
||||
toastr.warning("There is no policy inception data.", 'Warning!');
|
||||
$('#btnSubmit').prop('disabled', true).data('disable', true);
|
||||
}
|
||||
}else{
|
||||
$('#ct_type').val(1)
|
||||
// addInsurerColumn()
|
||||
toastr.warning(res.message, 'WARNING!');
|
||||
toastr.warning(res.message, 'Warning!');
|
||||
$('#btnSubmit').prop('disabled', true).data('disable', true);
|
||||
}
|
||||
},
|
||||
@ -799,7 +799,7 @@
|
||||
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
|
||||
|
||||
if (isAnyChecked) {
|
||||
toastr.warning('Only one leader can be selected.', 'WARNING!');
|
||||
toastr.warning('Only one leader can be selected.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
}
|
||||
});
|
||||
@ -819,7 +819,7 @@
|
||||
|
||||
|
||||
if(insurer == ""){
|
||||
toastr.warning('Please select the insurer.', 'WARNING!');
|
||||
toastr.warning('Please select the insurer.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
}else{
|
||||
if(client_id && insurer_id){
|
||||
@ -2067,7 +2067,7 @@
|
||||
});
|
||||
|
||||
if (val_sum > 100) {
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'WARNING');
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'Warning');
|
||||
}
|
||||
|
||||
}
|
||||
@ -2974,7 +2974,7 @@
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$(input).val('')
|
||||
}
|
||||
});
|
||||
|
||||
@ -649,13 +649,13 @@
|
||||
}else{
|
||||
$('#ct_type').val(1)
|
||||
// addInsurerColumn()
|
||||
toastr.warning("There is no policy inception data.", 'WARNING!');
|
||||
toastr.warning("There is no policy inception data.", 'Warning!');
|
||||
$('#btnSubmit').prop('disabled', true).data('disable', true);
|
||||
}
|
||||
}else{
|
||||
$('#ct_type').val(1)
|
||||
// addInsurerColumn()
|
||||
toastr.warning(res.message, 'WARNING!');
|
||||
toastr.warning(res.message, 'Warning!');
|
||||
$('#btnSubmit').prop('disabled', true).data('disable', true);
|
||||
}
|
||||
},
|
||||
@ -673,7 +673,7 @@
|
||||
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
|
||||
|
||||
if (isAnyChecked) {
|
||||
toastr.warning('Only one leader can be selected.', 'WARNING!');
|
||||
toastr.warning('Only one leader can be selected.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
}
|
||||
});
|
||||
@ -693,7 +693,7 @@
|
||||
|
||||
|
||||
if(insurer == ""){
|
||||
toastr.warning('Please select the insurer.', 'WARNING!');
|
||||
toastr.warning('Please select the insurer.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
}else{
|
||||
if(client_id && insurer_id){
|
||||
@ -1946,7 +1946,7 @@
|
||||
});
|
||||
|
||||
if (val_sum > 100) {
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'WARNING');
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'Warning');
|
||||
}
|
||||
|
||||
}
|
||||
@ -2825,7 +2825,7 @@
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$(input).val('')
|
||||
}
|
||||
});
|
||||
|
||||
@ -472,11 +472,11 @@ table.dataTable thead th {
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('create_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('update_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -1024,10 +1024,10 @@ table.dataTable thead th {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -470,11 +470,11 @@ table.dataTable thead th {
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('create_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('update_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -1020,10 +1020,10 @@ table.dataTable thead th {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -1797,7 +1797,7 @@
|
||||
|
||||
}else{
|
||||
|
||||
toastr.warning('Please select the Owner type', 'WARNING');
|
||||
toastr.warning('Please select the Owner type', 'Warning');
|
||||
}
|
||||
|
||||
|
||||
@ -2065,7 +2065,7 @@
|
||||
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
|
||||
|
||||
if (isAnyChecked) {
|
||||
toastr.warning('Only one leader can be selected.', 'WARNING!');
|
||||
toastr.warning('Only one leader can be selected.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
return;
|
||||
}
|
||||
@ -2084,7 +2084,7 @@
|
||||
// console.log('insurer_id', insurer_id);
|
||||
|
||||
if(insurer == ""){
|
||||
toastr.warning('Please select the insurer.', 'WARNING!');
|
||||
toastr.warning('Please select the insurer.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
return;
|
||||
}else{
|
||||
@ -2203,7 +2203,7 @@
|
||||
|
||||
if (!policy_type_id || !client_id) {
|
||||
$(this).val('').select2();
|
||||
toastr.warning(!policy_type_id ? 'Please select the Policy Type' : 'Please select the Client', 'WARNING');
|
||||
toastr.warning(!policy_type_id ? 'Please select the Policy Type' : 'Please select the Client', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -3244,7 +3244,7 @@
|
||||
});
|
||||
|
||||
if (val_sum > 100) {
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'WARNING');
|
||||
toastr.warning('Sum of the co-share is greater than 100', 'Warning');
|
||||
}
|
||||
|
||||
// // Find the empty input(s)
|
||||
@ -3779,7 +3779,7 @@
|
||||
|
||||
|
||||
if(client_id == '' || insurer_id == ''){
|
||||
toastr.warning('Client, Insurer, or both do not exist.', 'WARNING!');
|
||||
toastr.warning('Client, Insurer, or both do not exist.', 'Warning!');
|
||||
$(input).val('')
|
||||
return false;
|
||||
}
|
||||
@ -3787,7 +3787,7 @@
|
||||
if (isAnyLeaderChecked) {
|
||||
if(cop_yes){
|
||||
$('#cd_ac_no_'+uniqueid).val('');
|
||||
toastr.warning('Please select the Leader.', 'WARNING!');
|
||||
toastr.warning('Please select the Leader.', 'Warning!');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -3795,7 +3795,7 @@
|
||||
if(!leader){
|
||||
if(cop_yes){
|
||||
$('#cd_ac_no_'+uniqueid).val('');
|
||||
toastr.warning('The CD account number not for the Leader.', 'WARNING!');
|
||||
toastr.warning('The CD account number not for the Leader.', 'Warning!');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -3958,7 +3958,7 @@
|
||||
}
|
||||
|
||||
if(pt_form_sumbit_handler == 0){
|
||||
toastr.warning('Base premium greater than CD Amount', 'WARNING');
|
||||
toastr.warning('Base premium greater than CD Amount', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -4690,7 +4690,7 @@
|
||||
|
||||
if (!client_id || !client_branch_id || !policy_type_id) {
|
||||
if(client_type == 1){
|
||||
toastr.warning('Please select the policy type, client and branch', "WARNING");
|
||||
toastr.warning('Please select the policy type, client and branch', "Warning");
|
||||
$('#policy_no').val('');
|
||||
return;
|
||||
}
|
||||
@ -4710,7 +4710,7 @@
|
||||
console.log('get_client_policy_data_using_policy_no response', res)
|
||||
|
||||
if(res.status == true && res.code == 409){
|
||||
toastr.warning(res.message,'WARNING');
|
||||
toastr.warning(res.message,'Warning');
|
||||
$('#policy_no').val("");
|
||||
return;
|
||||
}else{
|
||||
@ -4719,7 +4719,7 @@
|
||||
$('#policy_start_date').val('');
|
||||
$('#policy_end_date').val('');
|
||||
$('#tpa').val('').select2();
|
||||
console.log(res.message, 'warning');
|
||||
console.log(res.message, 'Warning');
|
||||
}
|
||||
|
||||
// if(res.status == true){
|
||||
@ -5603,7 +5603,7 @@
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$(input).val('')
|
||||
if(table == 'vehicle'){
|
||||
resetVehicleField();
|
||||
@ -5722,7 +5722,7 @@
|
||||
|
||||
// Validate inputs
|
||||
if (!base_premium || !cd_ac_no) {
|
||||
toastr.warning('Base premium or CD account number is missing', 'WARNING');
|
||||
toastr.warning('Base premium or CD account number is missing', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5743,7 +5743,7 @@
|
||||
|
||||
if (response.status) {
|
||||
if (!response.base_premium_greater_than_balance) {
|
||||
console.log('Base premium is less than or equal to CD balance:', 'SUCCESS');
|
||||
console.log('Base premium is less than or equal to CD balance:', 'Success');
|
||||
if(differnce_bp_amt !== 0){
|
||||
$('#cd_amt_changed').prop('disabled', false).val(differnce_bp_amt);
|
||||
}else{
|
||||
@ -5751,13 +5751,13 @@
|
||||
}
|
||||
$('#pt_form_sumbit_handler').val(1);
|
||||
} else {
|
||||
toastr.warning('Base premium greater than CD Amount', 'WARNING');
|
||||
toastr.warning('Base premium greater than CD Amount', 'Warning');
|
||||
$('#cd_amt_changed').prop('disabled', true).val("");
|
||||
$('#pt_form_sumbit_handler').val(0);
|
||||
// $(input).val("0")
|
||||
}
|
||||
} else {
|
||||
toastr.error(response.message || 'Unable to fetch data', 'ERROR');
|
||||
toastr.error(response.message || 'Unable to fetch data', 'Error');
|
||||
}
|
||||
|
||||
console.log('#################################### End Check CD Amount For Base Premium Response ####################################');
|
||||
@ -5765,7 +5765,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
}else{
|
||||
@ -5809,7 +5809,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
console.log('#################################### END Get CD Amount ####################################');
|
||||
@ -5966,12 +5966,12 @@
|
||||
|
||||
|
||||
if (vhno === "" && rc === "") {
|
||||
toastr.warning("Please enter any one of these: Vehicle No or Chassis No", "WARNING");
|
||||
toastr.warning("Please enter any one of these: Vehicle No or Chassis No", "Warning");
|
||||
return;
|
||||
}
|
||||
|
||||
if(vehicle_no_validation == 1){
|
||||
toastr.warning("Invalid Vehicle Number Format", "WARNING");
|
||||
toastr.warning("Invalid Vehicle Number Format", "Warning");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -6024,7 +6024,7 @@
|
||||
|
||||
if (response.status == true) {
|
||||
getClientAndBranchAndPolicy(false);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
appendClients(response.clients, response.client_id);
|
||||
appendVehicles(response.vehicles, response.vehicle_id);
|
||||
appendBranch(response.branches, response.branch_id);
|
||||
@ -6041,7 +6041,7 @@
|
||||
}
|
||||
$('#client_type').val(response.data?.client_type ?? "").trigger('change');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('#client_row_div').empty();
|
||||
@ -6057,7 +6057,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
});
|
||||
@ -6103,11 +6103,11 @@
|
||||
|
||||
if (response.status == true) {
|
||||
getClientAndBranchAndPolicy(false);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
appendClients(response.clients, response.client_id);
|
||||
appendBranch(response.branches, response.branch_id);
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('#client_row_div').empty();
|
||||
@ -6123,7 +6123,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -6829,7 +6829,7 @@
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
isGSTValidating = false;
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('');
|
||||
isGSTValid = false;
|
||||
$('#client_form_submit_btn').prop('disabled', true);
|
||||
|
||||
@ -1440,7 +1440,7 @@
|
||||
|
||||
}else{
|
||||
|
||||
toastr.warning('Please select the Owner type', 'WARNING');
|
||||
toastr.warning('Please select the Owner type', 'Warning');
|
||||
}
|
||||
|
||||
|
||||
@ -1669,7 +1669,7 @@
|
||||
let isAnyChecked = $('input[type="checkbox"][name="co_share_type[]"]:checked').length > 1;
|
||||
|
||||
if (isAnyChecked) {
|
||||
toastr.warning('Only one leader can be selected.', 'WARNING!');
|
||||
toastr.warning('Only one leader can be selected.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
return;
|
||||
}
|
||||
@ -1683,7 +1683,7 @@
|
||||
var insurer_branch_id = $('#follow_insurer_id_'+uniqueid).find('option:selected').attr('data-bid');
|
||||
|
||||
if(insurer == ""){
|
||||
toastr.warning('Please select the insurer.', 'WARNING!');
|
||||
toastr.warning('Please select the insurer.', 'Warning!');
|
||||
$(this).prop('checked', false);
|
||||
return;
|
||||
}else{
|
||||
@ -2799,7 +2799,7 @@
|
||||
if (userTouched && sum > 100) {
|
||||
toastr.warning(
|
||||
'Sum of the co-share is greater than 100',
|
||||
'WARNING'
|
||||
'Warning'
|
||||
);
|
||||
}
|
||||
}
|
||||
@ -3357,7 +3357,7 @@
|
||||
|
||||
|
||||
if(client_id == '' || insurer_id == ''){
|
||||
toastr.warning('Client, Insurer, or both do not exist.', 'WARNING!');
|
||||
toastr.warning('Client, Insurer, or both do not exist.', 'Warning!');
|
||||
$(input).val('')
|
||||
return false;
|
||||
}
|
||||
@ -3365,7 +3365,7 @@
|
||||
if (isAnyLeaderChecked) {
|
||||
if(cop_yes){
|
||||
$('#cd_ac_no_'+uniqueid).val('');
|
||||
toastr.warning('Please select the Leader.', 'WARNING!');
|
||||
toastr.warning('Please select the Leader.', 'Warning!');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -3373,7 +3373,7 @@
|
||||
if(!leader){
|
||||
if(cop_yes){
|
||||
$('#cd_ac_no_'+uniqueid).val('');
|
||||
toastr.warning('The CD account number not for the Leader.', 'WARNING!');
|
||||
toastr.warning('The CD account number not for the Leader.', 'Warning!');
|
||||
return false;
|
||||
}
|
||||
}
|
||||
@ -3408,13 +3408,13 @@
|
||||
|
||||
// Missing base data
|
||||
if (!client_id || !insurer_id) {
|
||||
toastr.warning('Client or Insurer does not exist.', 'WARNING!');
|
||||
toastr.warning('Client or Insurer does not exist.', 'Warning!');
|
||||
return;
|
||||
}
|
||||
|
||||
// COP enabled but no leader selected
|
||||
if (cop_yes && !isAnyLeaderSelected) {
|
||||
toastr.warning('Please select a Leader.', 'WARNING!');
|
||||
toastr.warning('Please select a Leader.', 'Warning!');
|
||||
$input.val('');
|
||||
return;
|
||||
}
|
||||
@ -3424,7 +3424,7 @@
|
||||
|
||||
toastr.warning(
|
||||
'CD account number allowed only for Leader.',
|
||||
'WARNING!'
|
||||
'Warning!'
|
||||
);
|
||||
|
||||
// Clear current select
|
||||
@ -3611,7 +3611,7 @@
|
||||
}
|
||||
|
||||
if(pt_form_sumbit_handler == 0){
|
||||
toastr.warning('Base premium greater than CD Amount', 'WARNING');
|
||||
toastr.warning('Base premium greater than CD Amount', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -4394,7 +4394,7 @@
|
||||
|
||||
if (!client_id || !client_branch_id || !policy_type_id) {
|
||||
if(client_type == 1){
|
||||
toastr.warning('Please select the policy type, client and branch', "WARNING");
|
||||
toastr.warning('Please select the policy type, client and branch', "Warning");
|
||||
$('#policy_no').val('');
|
||||
return;
|
||||
}
|
||||
@ -4414,7 +4414,7 @@
|
||||
console.log('get_client_policy_data_using_policy_no response', res)
|
||||
$('.follower_policy_no').val(policy_no);// auto fetched
|
||||
if(res.status == true && res.code == 409){
|
||||
toastr.warning(res.message,'WARNING');
|
||||
toastr.warning(res.message,'Warning');
|
||||
$('#policy_no').val("");
|
||||
$('.follower_policy_no').val("");
|
||||
return;
|
||||
@ -4424,7 +4424,7 @@
|
||||
$('#policy_start_date').val('');
|
||||
$('#policy_end_date').val('');
|
||||
$('#tpa').val('').select2();
|
||||
console.log(res.message, 'warning');
|
||||
console.log(res.message, 'Warning');
|
||||
}
|
||||
|
||||
// if(res.status == true){
|
||||
@ -5290,7 +5290,7 @@
|
||||
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
$(input).val('')
|
||||
if(table == 'vehicle'){
|
||||
resetVehicleField();
|
||||
@ -5409,11 +5409,11 @@
|
||||
|
||||
// Validate inputs
|
||||
// if (!base_premium || !cd_ac_no) {
|
||||
// toastr.warning('Base premium or CD account number is missing', 'WARNING');
|
||||
// toastr.warning('Base premium or CD account number is missing', 'Warning');
|
||||
// return;
|
||||
// }
|
||||
if (!base_premium) {
|
||||
toastr.warning('Base premium is missing', 'WARNING');
|
||||
toastr.warning('Base premium is missing', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5442,13 +5442,13 @@
|
||||
}
|
||||
$('#pt_form_sumbit_handler').val(1);
|
||||
} else {
|
||||
toastr.warning('Base premium greater than CD Amount', 'WARNING');
|
||||
toastr.warning('Base premium greater than CD Amount', 'Warning');
|
||||
$('#cd_amt_changed').prop('disabled', true).val("");
|
||||
$('#pt_form_sumbit_handler').val(0);
|
||||
// $(input).val("0")
|
||||
}
|
||||
} else {
|
||||
toastr.error(response.message || 'Unable to fetch data', 'ERROR');
|
||||
toastr.error(response.message || 'Unable to fetch data', 'Error');
|
||||
}
|
||||
|
||||
console.log('#################################### End Check CD Amount For Base Premium Response ####################################');
|
||||
@ -5456,7 +5456,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
}else{
|
||||
@ -5509,7 +5509,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
});
|
||||
|
||||
console.log('#################################### END Get CD Amount ####################################');
|
||||
@ -5665,12 +5665,12 @@
|
||||
|
||||
|
||||
if (vhno === "" && rc === "") {
|
||||
toastr.warning("Please enter any one of these: Vehicle No or Chassis No", "WARNING");
|
||||
toastr.warning("Please enter any one of these: Vehicle No or Chassis No", "Warning");
|
||||
return;
|
||||
}
|
||||
|
||||
if(vehicle_no_validation == 1){
|
||||
toastr.warning("Invalid Vehicle Number Format", "WARNING");
|
||||
toastr.warning("Invalid Vehicle Number Format", "Warning");
|
||||
return;
|
||||
}
|
||||
|
||||
@ -5723,7 +5723,7 @@
|
||||
|
||||
if (response.status == true) {
|
||||
getClientAndBranchAndPolicy(false);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
appendClients(response.clients, response.client_id);
|
||||
appendVehicles(response.vehicles, response.vehicle_id);
|
||||
appendBranch(response.branches, response.branch_id);
|
||||
@ -5740,7 +5740,7 @@
|
||||
}
|
||||
$('#client_type').val(response.data?.client_type ?? "").trigger('change');
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('#client_row_div').empty();
|
||||
@ -5756,7 +5756,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
});
|
||||
@ -5802,11 +5802,11 @@
|
||||
|
||||
if (response.status == true) {
|
||||
getClientAndBranchAndPolicy(false);
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
appendClients(response.clients, response.client_id);
|
||||
appendBranch(response.branches, response.branch_id);
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
$('#client_row_div').empty();
|
||||
@ -5822,7 +5822,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while checking the CD amount.', 'ERROR');
|
||||
toastr.error('An error occurred while checking the CD amount.', 'Error');
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -6615,7 +6615,7 @@
|
||||
checkDuplicateTableFieldValue(table, field, value, function(isDuplicate) {
|
||||
isGSTValidating = false;
|
||||
if (isDuplicate) {
|
||||
toastr.warning(message, 'WARNING');
|
||||
toastr.warning(message, 'Warning');
|
||||
// $(input).val('');
|
||||
isGSTValid = false;
|
||||
$('#client_form_submit_btn').prop('disabled', true);
|
||||
|
||||
@ -539,11 +539,11 @@ $(document).ready(function(){
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('create_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('update_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -1317,7 +1317,7 @@ $(document).ready(function(){
|
||||
// myModal.show();
|
||||
// }else{
|
||||
// $('#client_id').val('').change();
|
||||
// toastr.warning('Please select the client type', 'WARNING')
|
||||
// toastr.warning('Please select the client type', 'Warning')
|
||||
// }
|
||||
appendClientForm();
|
||||
|
||||
@ -1494,7 +1494,7 @@ $('#cd_ac_no_data').change(function(){
|
||||
|
||||
console.log('CD Account Number Responcce', res)
|
||||
if(res.status == true){
|
||||
toastr.warning(res.message, 'warning');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
$('#cd_ac_no_data').val('');
|
||||
}
|
||||
},
|
||||
@ -1809,10 +1809,10 @@ function removePolicyTransaction(input, pt_id, policy_type_id) {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -536,11 +536,11 @@ $(document).ready(function(){
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('create_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('create_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if (session()->has('update_success')) : ?>
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'success');
|
||||
toastr.success('<?= session()->getFlashdata('update_success') ?>', 'Success');
|
||||
<?php endif; ?>
|
||||
|
||||
|
||||
@ -1293,7 +1293,7 @@ $(document).ready(function(){
|
||||
// myModal.show();
|
||||
// }else{
|
||||
// $('#client_id').val('').change();
|
||||
// toastr.warning('Please select the client type', 'WARNING')
|
||||
// toastr.warning('Please select the client type', 'Warning')
|
||||
// }
|
||||
appendClientForm();
|
||||
|
||||
@ -1470,7 +1470,7 @@ $('#cd_ac_no_data').change(function(){
|
||||
|
||||
console.log('CD Account Number Responcce', res)
|
||||
if(res.status == true){
|
||||
toastr.warning(res.message, 'warning');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
$('#cd_ac_no_data').val('');
|
||||
}
|
||||
},
|
||||
@ -1760,10 +1760,10 @@ function removePolicyTransaction(input, pt_id, policy_type_id) {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -141,7 +141,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
@ -357,10 +357,10 @@
|
||||
// console.log(res.status == true);
|
||||
if (res) {
|
||||
if (res.status == true) {
|
||||
toastr.success('Policy type removed successfully', 'success');
|
||||
toastr.success('Policy type removed successfully', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove policy type', 'warning');
|
||||
toastr.warning('Failed to remove policy type', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -369,7 +369,7 @@
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove policy type', 'warning');
|
||||
toastr.warning('Failed to remove policy type', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -92,7 +92,7 @@
|
||||
|
||||
if (check_policy_type_id[0].value == '' || check_policy_type_id[0].value == null || check_policy_type_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('First Add the Policy Type!', 'warning', {
|
||||
toastr.warning('First Add the Policy Type!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
|
||||
@ -161,14 +161,14 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -734,7 +734,7 @@ function getCoShareStatementDetails(pt_id){
|
||||
appendTableData(response.data)
|
||||
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -569,7 +569,7 @@
|
||||
appendPolicies(response.data)
|
||||
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -615,7 +615,7 @@
|
||||
appendTableData(response.data)
|
||||
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -637,7 +637,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
$('#email_corporate').val('');
|
||||
$('#mobile').val('');
|
||||
|
||||
toastr.warning(res.message, 'WARNING');
|
||||
toastr.warning(res.message, 'Warning');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
@ -684,7 +684,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if(response.status == true){
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
|
||||
$('.close').click();
|
||||
|
||||
@ -699,7 +699,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
window.location.reload();
|
||||
|
||||
}else{
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
@ -725,9 +725,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}else{ toastr.warning('Error uploading file', 'WARNING'); }
|
||||
}else{ toastr.warning('Error uploading file', 'Warning'); }
|
||||
|
||||
// toastr.warning('Error uploading file', 'WARNING');
|
||||
// toastr.warning('Error uploading file', 'Warning');
|
||||
// console.error('Upload error:', error);
|
||||
},
|
||||
complete: function() {
|
||||
@ -768,9 +768,9 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
// $('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
// if(res.status == true){
|
||||
// toastr.success(res.message, 'SUCCESS');
|
||||
// toastr.success(res.message, 'Success');
|
||||
// }else{
|
||||
// toastr.error(res.message, 'ERROR');
|
||||
// toastr.error(res.message, 'Error');
|
||||
// }
|
||||
// },
|
||||
// error: function (xhr, status, error) {
|
||||
@ -793,7 +793,7 @@ document.addEventListener("DOMContentLoaded", function () {
|
||||
})
|
||||
|
||||
if(selected.length == 0){
|
||||
toastr.warning('Please select atleast one employee', 'WARNING');
|
||||
toastr.warning('Please select atleast one employee', 'Warning');
|
||||
return;
|
||||
}
|
||||
$('#employee_ids').val(selected);
|
||||
@ -1072,12 +1072,12 @@ for (let i = 0; i < selected_count.length; i++) {
|
||||
if (response.code === 200) {
|
||||
console.log(`Iteration ${i}: Success - ${response.message}`);
|
||||
} else {
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error('AJAX Error:', error);
|
||||
toastr.error('An error occurred. Please try again.', 'ERROR');
|
||||
toastr.error('An error occurred. Please try again.', 'Error');
|
||||
},
|
||||
complete: function() {
|
||||
// Increment the completed requests counter
|
||||
@ -1085,7 +1085,7 @@ for (let i = 0; i < selected_count.length; i++) {
|
||||
|
||||
// Check if all AJAX requests have completed
|
||||
if (completedRequests === selected_count.length) {
|
||||
toastr.success('All employees have been successfully mapped.', 'SUCCESS');
|
||||
toastr.success('All employees have been successfully mapped.', 'Success');
|
||||
$('#map_emp_modal').modal('hide');
|
||||
window.location.reload();
|
||||
}
|
||||
@ -1102,7 +1102,7 @@ function unmapEmployees(){
|
||||
})
|
||||
|
||||
if(selected.length == 0){
|
||||
toastr.warning('Please select atleast one employee', 'WARNING');
|
||||
toastr.warning('Please select atleast one employee', 'Warning');
|
||||
return;
|
||||
}
|
||||
|
||||
@ -1147,10 +1147,10 @@ function unmapEmployees(){
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
if (res.status === true) {
|
||||
toastr.success(res.message, 'SUCCESS');
|
||||
toastr.success(res.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.error(res.message, 'ERROR');
|
||||
toastr.error(res.message, 'Error');
|
||||
}
|
||||
},
|
||||
error: function (xhr, status, error) {
|
||||
|
||||
@ -162,9 +162,10 @@ beccause = dataTables_length and dataTables_paginate need in same line thats why
|
||||
|
||||
<div class="form-group col-md-5 ">
|
||||
<label for="mobile">Mobile<span class="text-danger">*</span></label>
|
||||
<input type="text" class="form-control app-field-grey" id="mobile" placeholder="Enter Mobile Number"
|
||||
<input type="tel" class="form-control app-field-grey" id="mobile" placeholder="Enter Mobile Number"
|
||||
name="mobile"
|
||||
pattern="^[0-9]{10}$" required maxlength="10"
|
||||
required pattern="[0-9]{10}" maxlength="10" inputmode="numeric"
|
||||
oninput="this.value=this.value.replace(/[^0-9]/g,'');"
|
||||
title="Please enter a valid 10-digit mobile number">
|
||||
</div>
|
||||
|
||||
@ -192,7 +193,6 @@ beccause = dataTables_length and dataTables_paginate need in same line thats why
|
||||
<input type="email" class="form-control" id="email"
|
||||
name="email" placeholder="Enter Email"
|
||||
required
|
||||
pattern="[^@\s]+@[^@\s]+\.[^@\s]+"
|
||||
title="Please enter a valid email address">
|
||||
</div>
|
||||
|
||||
@ -438,25 +438,25 @@ beccause = dataTables_length and dataTables_paginate need in same line thats why
|
||||
|
||||
// Validation checks
|
||||
if (message.length === 0) {
|
||||
toastr.error('Message cannot be empty', 'Warning');
|
||||
toastr.warning('Message cannot be empty', 'Warning');
|
||||
form.classList.add('was-validated');
|
||||
return;
|
||||
}
|
||||
|
||||
if (message.length > 1500) {
|
||||
toastr.error('Message cannot exceed 1500 characters', 'Warning');
|
||||
toastr.warning('Message cannot exceed 1500 characters', 'Warning');
|
||||
form.classList.add('was-validated');
|
||||
return;
|
||||
}
|
||||
|
||||
if (subject.length === 0) {
|
||||
toastr.error('Subject cannot be empty', 'Warning');
|
||||
toastr.warning('Subject cannot be empty', 'Warning');
|
||||
form.classList.add('was-validated');
|
||||
return;
|
||||
}
|
||||
|
||||
if (subject.length > 150) {
|
||||
toastr.error('Subject cannot exceed 150 characters', 'Warning');
|
||||
toastr.warning('Subject cannot exceed 150 characters', 'Warning');
|
||||
form.classList.add('was-validated');
|
||||
return;
|
||||
}
|
||||
@ -706,7 +706,7 @@ $(document).ready(function() {
|
||||
subjectCounter.textContent = `${subjectLength}/150`;
|
||||
|
||||
if (subjectLength > 150) {
|
||||
toastr.error('Subject cannot exceed 150 characters', 'Warning');
|
||||
toastr.warning('Subject cannot exceed 150 characters', 'Warning');
|
||||
subjectInput.classList.add('is-invalid');
|
||||
} else {
|
||||
subjectInput.classList.remove('is-invalid');
|
||||
@ -722,7 +722,7 @@ $(document).ready(function() {
|
||||
messageCounter.textContent = `${messageLength}/1500`;
|
||||
|
||||
if (messageLength > 1500) {
|
||||
toastr.error('Message cannot exceed 1500 characters', 'Warning');
|
||||
toastr.warning('Message cannot exceed 1500 characters', 'Warning');
|
||||
messageInput.classList.add('is-invalid');
|
||||
} else {
|
||||
messageInput.classList.remove('is-invalid');
|
||||
|
||||
@ -491,7 +491,7 @@ data-backdrop="static"
|
||||
messageCounter.textContent = `${messageLength}/1500`;
|
||||
|
||||
if (messageLength > 1500) {
|
||||
toastr.error('Message cannot exceed 1500 characters', 'Warning');
|
||||
toastr.warning('Message cannot exceed 1500 characters', 'Warning');
|
||||
messageInput.classList.add('is-invalid');
|
||||
} else {
|
||||
messageInput.classList.remove('is-invalid');
|
||||
|
||||
@ -176,7 +176,7 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
window.location.reload();
|
||||
@ -184,7 +184,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -222,7 +222,7 @@
|
||||
var isValid = $('#ticket_form_data').parsley().validate();
|
||||
|
||||
if (!isValid) {
|
||||
toastr.warning('Form validation failed. Please check the required fields.', 'WARNING');
|
||||
toastr.warning('Form validation failed. Please check the required fields.', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -250,9 +250,9 @@
|
||||
|
||||
if (response.status === true) {
|
||||
location.reload();
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
} else {
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
@ -378,16 +378,16 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status) {
|
||||
toastr.success(response.message || 'Status updated successfully', 'SUCCESS');
|
||||
toastr.success(response.message || 'Status updated successfully', 'Success');
|
||||
window.location.reload(true);
|
||||
} else {
|
||||
toastr.warning(response.message || 'Failed to update status', 'WARNING');
|
||||
toastr.warning(response.message || 'Failed to update status', 'Warning');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while saving docs.', 'ERROR');
|
||||
toastr.error('An error occurred while saving docs.', 'Error');
|
||||
});
|
||||
}
|
||||
</script>
|
||||
@ -740,7 +740,7 @@
|
||||
var isValid = $('#ticket_form_data').parsley().validate();
|
||||
|
||||
if (!isValid) {
|
||||
toastr.warning('Form validation failed. Please check the required fields.', 'WARNING');
|
||||
toastr.warning('Form validation failed. Please check the required fields.', 'Warning');
|
||||
return false;
|
||||
}
|
||||
|
||||
@ -769,13 +769,13 @@
|
||||
console.log('Form submitted response:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.href = '<?= base_url('ticket/list') ?>';
|
||||
} else {
|
||||
if(response.code == 409){
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}else{
|
||||
toastr.error(response.message, 'ERROR');
|
||||
toastr.error(response.message, 'Error');
|
||||
}
|
||||
}
|
||||
|
||||
@ -814,12 +814,12 @@
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status) {
|
||||
console.log(response.message, 'SUCCESS');
|
||||
console.log(response.message, 'Success');
|
||||
appendEmployee(response.data, 'search_by_client_employee');
|
||||
setClientAndInsurerData(response.dataForClientAndInsurer);
|
||||
setClientPolicyData(input);
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
|
||||
// Hide loader
|
||||
@ -829,7 +829,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetch data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetch data.', 'Error');
|
||||
|
||||
// Hide loader
|
||||
$('.loader').fadeOut();
|
||||
@ -890,7 +890,7 @@
|
||||
appendACMS(response.acms)
|
||||
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
appendACMS(response.acms);
|
||||
unSetClientPolicy();
|
||||
unSetClientAndInsurerData()
|
||||
@ -902,7 +902,7 @@
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetch data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetch data.', 'Error');
|
||||
|
||||
// Hide loader
|
||||
$('.loader').fadeOut();
|
||||
|
||||
@ -386,10 +386,10 @@ function removeClaim(input, ticket_id) {
|
||||
console.log('Data fetched successfully:', response);
|
||||
|
||||
if (response.status === true) {
|
||||
toastr.success(response.message, 'SUCCESS');
|
||||
toastr.success(response.message, 'Success');
|
||||
window.location.reload();
|
||||
} else {
|
||||
toastr.warning(response.message, 'WARNING');
|
||||
toastr.warning(response.message, 'Warning');
|
||||
}
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
|
||||
@ -424,7 +424,7 @@
|
||||
toastr.success('Template saved successfully!', 'Success');
|
||||
location.reload();
|
||||
} else if (res.status == false) {
|
||||
toastr.error('Failed to Save Data', 'error');
|
||||
toastr.error('Failed to Save Data', 'Error');
|
||||
}
|
||||
|
||||
},
|
||||
@ -443,7 +443,7 @@
|
||||
} else {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
} else{toastr.error('Something Wrong!', 'warning');}
|
||||
} else{toastr.error('Something Wrong!', 'Warning');}
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -552,7 +552,7 @@
|
||||
});
|
||||
}
|
||||
} else {
|
||||
toastr.error('Data Not Found', 'error');
|
||||
toastr.error('Data Not Found', 'Error');
|
||||
}
|
||||
}
|
||||
$('.loader').fadeOut();
|
||||
@ -564,7 +564,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
|
||||
@ -42,7 +42,7 @@ $(document).ready(function() {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Went Wrong!', 'warning');
|
||||
toastr.warning('Something Went Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
})
|
||||
@ -79,14 +79,14 @@ $(document).ready(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -129,14 +129,14 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the report page.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the report page.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -259,13 +259,13 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
@ -303,13 +303,13 @@
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
let message = response.message;
|
||||
toastr.error(message, 'ERROR');
|
||||
toastr.error(message, 'Error');
|
||||
}
|
||||
|
||||
}, function(xhr, status, error) {
|
||||
console.error('Error fetching data:', error);
|
||||
console.error(xhr.responseText);
|
||||
toastr.error('An error occurred while fetching the data.', 'ERROR');
|
||||
toastr.error('An error occurred while fetching the data.', 'Error');
|
||||
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
|
||||
@ -327,7 +327,7 @@
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
console.log('Something Wrong!', 'warning');
|
||||
console.log('Something Wrong!', 'Warning');
|
||||
// Handle validation errors (CI4)
|
||||
if (xhr.status === 400) {
|
||||
let response = JSON.parse(xhr.responseText);
|
||||
|
||||
@ -488,7 +488,7 @@ $(document).ready(function () {
|
||||
toastr.warning(response.message || 'Validation failed', 'Warning');
|
||||
}
|
||||
}
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
},
|
||||
complete: function() {
|
||||
@ -556,7 +556,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -610,7 +610,7 @@ $(document).ready(function () {
|
||||
setTimeout(function() {
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Something Wrong!', 'warning');
|
||||
toastr.warning('Something Wrong!', 'Warning');
|
||||
}, 1000);
|
||||
}
|
||||
});
|
||||
@ -866,10 +866,10 @@ function removeTPABranch(element) {
|
||||
// console.log(res.status == true);
|
||||
if(res){
|
||||
if (res.status == true) {
|
||||
toastr.success('TPA branch removed successfully', 'success');
|
||||
toastr.success('TPA branch removed successfully', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove TPA branch', 'warning');
|
||||
toastr.warning('Failed to remove TPA branch', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -878,7 +878,7 @@ function removeTPABranch(element) {
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove TPA branch', 'warning');
|
||||
toastr.warning('Failed to remove TPA branch', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -314,10 +314,10 @@
|
||||
// console.log(res.status == true);
|
||||
if (res) {
|
||||
if (res.status == true) {
|
||||
toastr.success('TPA removed successfully', 'success');
|
||||
toastr.success('TPA removed successfully', 'Success');
|
||||
location.reload();
|
||||
} else {
|
||||
toastr.warning('Failed to remove TPA', 'warning');
|
||||
toastr.warning('Failed to remove TPA', 'Warning');
|
||||
}
|
||||
}
|
||||
},
|
||||
@ -326,7 +326,7 @@
|
||||
console.error(status, error);
|
||||
$('.loader').fadeOut();
|
||||
$('.loader-mask').delay(350).fadeOut('slow');
|
||||
toastr.warning('Failed to remove TPA', 'warning');
|
||||
toastr.warning('Failed to remove TPA', 'Warning');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@ -90,7 +90,7 @@
|
||||
|
||||
if (check_tpa_id[0].value == '' || check_tpa_id[0].value == null || check_tpa_id[0].value == 0) {
|
||||
$('#btnBranchAdd').hide();
|
||||
toastr.warning('First Add the TPA!', 'warning', {
|
||||
toastr.warning('First Add the TPA!', 'Warning', {
|
||||
timeOut: 2000
|
||||
});
|
||||
} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user