This commit is contained in:
VENKATESHWARAN 2025-11-12 13:09:33 +05:30
parent 1ac0c09df3
commit 9e17134461
2 changed files with 5 additions and 1 deletions

View File

@ -436,6 +436,7 @@ $("#branch_form").submit(function(event) {
toastr.error(res.message, 'Error');
}else{
toastr.success(res.message, 'Success');
newBranchSavedPeaseCallTheHrAccessFormApi = true;
}
// var message = (branch_PrimaryKey === '') ?
// 'Client Branch Created successfully' :

View File

@ -456,6 +456,7 @@
<script>
let hrAccessControlHtmlAppended = false;
let hrActivityHistoryHtmlAppended = false;
let newBranchSavedPeaseCallTheHrAccessFormApi = false;
function client_kyc_docs() {
var check_client_id = $('#general_PrimaryKey');
@ -566,6 +567,7 @@
//HR Access Controll also know as "Client Access Control"
function appendHrAccessControllHtml(input) {
console.log(input.id);
let client_id = $('#general_PrimaryKey').val();
console.log('client_id ', client_id);
@ -575,7 +577,8 @@
client_id: client_id
};
if (hrAccessControlHtmlAppended == false) {
console.log({hrActivityHistoryHtmlAppended, newBranchSavedPeaseCallTheHrAccessFormApi});
if (hrAccessControlHtmlAppended == false || newBranchSavedPeaseCallTheHrAccessFormApi == true) {
sendAjaxRequestForGlobal(url, 'GET', requestData, function(response) {
console.log('Data fetched successfully:', response);