CHANGE_CLAIMS_CHANGES : RV

This commit is contained in:
VENKATESHWARAN 2025-03-03 17:53:00 +05:30
parent 6efcb610d3
commit b808b920c9
3 changed files with 20 additions and 7 deletions

View File

@ -1247,7 +1247,7 @@ class sendMailNotification
$subject = $notification['subject']; $subject = $notification['subject'];
$rand_string = 'HX3kUh'; $rand_string = 'HX3kUh';
$link = generate_download_link($rand_string); $link = generate_download_link($rand_string).'/1';
$name = 'John Doe'; $name = 'John Doe';
$mobile = 9080706050; $mobile = 9080706050;

View File

@ -343,7 +343,7 @@
</div> </div>
<div class="form-group col-md-3 non_id" style="display: none;"> <div class="form-group col-md-3 non_id" style="display: none;">
<label for="non_id_reason">Non ID Reason</label> <label for="non_id_reason">Non ID Reason <span id="non_id_reason_lable_id" class="text-danger"></span></label>
<select class="form-control" id="non_id_reason" name="non_id_reason"> <select class="form-control" id="non_id_reason" name="non_id_reason">
<option value="">Select Reason</option> <option value="">Select Reason</option>
<?php <?php

View File

@ -476,6 +476,8 @@ function submitClaimForm(event, form) {
} else { } else {
toastr.error(response.message, 'ERROR'); toastr.error(response.message, 'ERROR');
} }
window.location.href = '<?= base_url('ticket/list') ?>';
}, },
error: function(xhr, status, error) { error: function(xhr, status, error) {
console.error(xhr.responseText); console.error(xhr.responseText);
@ -742,16 +744,16 @@ function setMemberData(input) {
}); });
if (tpaNo == "") { if (tpaNo == "") {
$('#claim_status_id').val(1) $('#claim_status_id').val(1)
$('#non_id_reason').attr('required', true); $('#non_id_reason').attr('required', true);
var $label = $("label[for='non_id_reason']"); var $label = $("#non_id_reason_lable_id");
if ($label.length && !$label.find('.text-danger').length) { $label.text('*');
$label.append(' <span class="text-danger">*</span>');
}
} else { } else {
$('#claim_status_id').val(2) $('#claim_status_id').val(2)
$('#non_id_reason').attr('required', false); $('#non_id_reason').attr('required', false);
var $label = $("label[for='non_id_reason']"); var $label = $("#non_id_reason_lable_id");
$label.text(""); $label.text("");
} }
} }
@ -793,4 +795,15 @@ function toResetTheModelFields() {
$('#search_by_client_employee').val('0').select2(); $('#search_by_client_employee').val('0').select2();
$('#search_by_client_member').val('0').select2(); $('#search_by_client_member').val('0').select2();
} }
$('#tpa_no').on('input', function() {
let tpaNo = $(this).val().trim();
console.log('tpaNo:', tpaNo);
let isEmpty = tpaNo === "";
$('#claim_status_id').val(isEmpty ? 1 : 2);
$('#non_id_reason').prop('required', isEmpty);
$('#non_id_reason_lable_id').text(isEmpty ? '*' : '');
});
</script> </script>