CHANGE_CLAIMS_CHANGES : RV
This commit is contained in:
parent
6efcb610d3
commit
b808b920c9
@ -1247,7 +1247,7 @@ class sendMailNotification
|
||||
$subject = $notification['subject'];
|
||||
|
||||
$rand_string = 'HX3kUh';
|
||||
$link = generate_download_link($rand_string);
|
||||
$link = generate_download_link($rand_string).'/1';
|
||||
|
||||
$name = 'John Doe';
|
||||
$mobile = 9080706050;
|
||||
|
||||
@ -343,7 +343,7 @@
|
||||
</div>
|
||||
|
||||
<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">
|
||||
<option value="">Select Reason</option>
|
||||
<?php
|
||||
|
||||
@ -476,6 +476,8 @@ function submitClaimForm(event, form) {
|
||||
} else {
|
||||
toastr.error(response.message, 'ERROR');
|
||||
}
|
||||
|
||||
window.location.href = '<?= base_url('ticket/list') ?>';
|
||||
},
|
||||
error: function(xhr, status, error) {
|
||||
console.error(xhr.responseText);
|
||||
@ -742,16 +744,16 @@ function setMemberData(input) {
|
||||
});
|
||||
|
||||
if (tpaNo == "") {
|
||||
|
||||
$('#claim_status_id').val(1)
|
||||
$('#non_id_reason').attr('required', true);
|
||||
var $label = $("label[for='non_id_reason']");
|
||||
if ($label.length && !$label.find('.text-danger').length) {
|
||||
$label.append(' <span class="text-danger">*</span>');
|
||||
}
|
||||
var $label = $("#non_id_reason_lable_id");
|
||||
$label.text('*');
|
||||
|
||||
} else {
|
||||
$('#claim_status_id').val(2)
|
||||
$('#non_id_reason').attr('required', false);
|
||||
var $label = $("label[for='non_id_reason']");
|
||||
var $label = $("#non_id_reason_lable_id");
|
||||
$label.text("");
|
||||
}
|
||||
}
|
||||
@ -793,4 +795,15 @@ function toResetTheModelFields() {
|
||||
$('#search_by_client_employee').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>
|
||||
Loading…
Reference in New Issue
Block a user