CHANGE_BDS
This commit is contained in:
parent
2e4b78fa6b
commit
2a8a71d029
@ -3110,6 +3110,7 @@
|
|||||||
let unique_id = $(input).data('count');
|
let unique_id = $(input).data('count');
|
||||||
let client_id = $('#client_id').val();
|
let client_id = $('#client_id').val();
|
||||||
let client_type = $('#client_type').val();
|
let client_type = $('#client_type').val();
|
||||||
|
let policy_type_id = $('#policy_type_id').val();
|
||||||
let insurer_id = $(input).find('option:selected').attr('data-id');
|
let insurer_id = $(input).find('option:selected').attr('data-id');
|
||||||
let insurer_branch_id = $(input).find('option:selected').attr('data-bid');
|
let insurer_branch_id = $(input).find('option:selected').attr('data-bid');
|
||||||
|
|
||||||
@ -3120,7 +3121,7 @@
|
|||||||
console.log('follow_insurer_id unique_id', unique_id);
|
console.log('follow_insurer_id unique_id', unique_id);
|
||||||
|
|
||||||
if(client_id && insurer_id){
|
if(client_id && insurer_id){
|
||||||
if(client_type == 1){
|
if(client_type == 1 && policy_type_id > 7){
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: '<?= base_url("/util/getCDAccNoByClientAndInsurer/") ?>' + client_id + '/' + insurer_id + '/' + insurer_branch_id,
|
url: '<?= base_url("/util/getCDAccNoByClientAndInsurer/") ?>' + client_id + '/' + insurer_id + '/' + insurer_branch_id,
|
||||||
type: "GET",
|
type: "GET",
|
||||||
@ -3328,8 +3329,10 @@
|
|||||||
|
|
||||||
$("#inception_form_id").submit(function(event) {
|
$("#inception_form_id").submit(function(event) {
|
||||||
|
|
||||||
|
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
|
|
||||||
|
let policy_type_id = $('#policy_type_id').val();
|
||||||
var isValid = $('#inception_form_id').parsley().validate();
|
var isValid = $('#inception_form_id').parsley().validate();
|
||||||
var client_type_id = $('#client_type').val();
|
var client_type_id = $('#client_type').val();
|
||||||
var policy_status = $('#policy_status').val();
|
var policy_status = $('#policy_status').val();
|
||||||
@ -3350,7 +3353,7 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(client_type_id == 1 && policy_status == 'completed'){
|
if(client_type_id == 1 && policy_status == 'completed' && policy_type_id > 7){
|
||||||
|
|
||||||
let isAnyDropdownSelected = $('select[name="cd_ac_no_for_child[]"]').filter(function() {
|
let isAnyDropdownSelected = $('select[name="cd_ac_no_for_child[]"]').filter(function() {
|
||||||
return $(this).val() !== "";
|
return $(this).val() !== "";
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user