FIX_HR
This commit is contained in:
parent
1ac0c09df3
commit
9e17134461
@ -436,6 +436,7 @@ $("#branch_form").submit(function(event) {
|
|||||||
toastr.error(res.message, 'Error');
|
toastr.error(res.message, 'Error');
|
||||||
}else{
|
}else{
|
||||||
toastr.success(res.message, 'Success');
|
toastr.success(res.message, 'Success');
|
||||||
|
newBranchSavedPeaseCallTheHrAccessFormApi = true;
|
||||||
}
|
}
|
||||||
// var message = (branch_PrimaryKey === '') ?
|
// var message = (branch_PrimaryKey === '') ?
|
||||||
// 'Client Branch Created successfully' :
|
// 'Client Branch Created successfully' :
|
||||||
|
|||||||
@ -456,6 +456,7 @@
|
|||||||
<script>
|
<script>
|
||||||
let hrAccessControlHtmlAppended = false;
|
let hrAccessControlHtmlAppended = false;
|
||||||
let hrActivityHistoryHtmlAppended = false;
|
let hrActivityHistoryHtmlAppended = false;
|
||||||
|
let newBranchSavedPeaseCallTheHrAccessFormApi = false;
|
||||||
|
|
||||||
function client_kyc_docs() {
|
function client_kyc_docs() {
|
||||||
var check_client_id = $('#general_PrimaryKey');
|
var check_client_id = $('#general_PrimaryKey');
|
||||||
@ -566,6 +567,7 @@
|
|||||||
|
|
||||||
//HR Access Controll also know as "Client Access Control"
|
//HR Access Controll also know as "Client Access Control"
|
||||||
function appendHrAccessControllHtml(input) {
|
function appendHrAccessControllHtml(input) {
|
||||||
|
|
||||||
console.log(input.id);
|
console.log(input.id);
|
||||||
let client_id = $('#general_PrimaryKey').val();
|
let client_id = $('#general_PrimaryKey').val();
|
||||||
console.log('client_id ', client_id);
|
console.log('client_id ', client_id);
|
||||||
@ -575,7 +577,8 @@
|
|||||||
client_id: client_id
|
client_id: client_id
|
||||||
};
|
};
|
||||||
|
|
||||||
if (hrAccessControlHtmlAppended == false) {
|
console.log({hrActivityHistoryHtmlAppended, newBranchSavedPeaseCallTheHrAccessFormApi});
|
||||||
|
if (hrAccessControlHtmlAppended == false || newBranchSavedPeaseCallTheHrAccessFormApi == true) {
|
||||||
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
|
||||||
console.log('Data fetched successfully:', response);
|
console.log('Data fetched successfully:', response);
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user