async function bindOrderDetails() { let user_number = $('.User_phoneum').text(); // validatesession() debugger let cookieRes = COOKIE_HELPER_ACTIONS.getCookie(); let { userId } = cookieRes; //let userId = '106631380000048'; debugger; console.log(cookieRes); let port = SERVERNAME; // let port = "http://localhost:3088"; let url = `${port}/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/${userId}`; // /apis/v4/bizgaze/integrations/products/salesorderdetailsbyorgid/phonenumber/ // https://anwi.bizgaze.app/apis/v4/Bizgaze/integrations/products/salesorderdetailsbyorgid/organizationid/{organizationid} const config = { url, method: "get", headers: { 'Authorization': `stat ${STAT} `, 'Content-Type': 'application/json' } }; debugger let res = await axios(config); if (res.data.result == '[]' || res.data.result === null) { $(".user_order_details").append(`
ORDER NO: ${current.OrderNo}
ORDER PLACED
${current.OrderDate}
TOTAL
₹${updatedCurent_total}
Delivered TO
${current.OrganizationName}
View order details
Invoice