function onLoadMaster() {
isLoggedIn();
$.ajax({
type: "POST",
async: false,
url: $host_url + "onLoadMaster",
success: function onLoadMasterResponce(responce) {
responce = eval("(" + responce + ")");
console.log(responce);
// return;
var menuhtml = `
`;
responce.data.menu.forEach((el, i) => {
// console.log("obj",el,i);
if (el.children != undefined && el.children.length > 0) {
menuhtml += `
`;
} else {
menuhtml += `
`;
}
// menuhtml += ``;
});
menuhtml += `
`;
// $('#loadmenu').html(menuhtml);
console.log(menuhtml);
loadInvoiceEntry();
},
});
}