async function bindOrderDetails() { let user_number =$('.User_phoneum').text(); // validatesession() let port = "https://anwi.bizgaze.app"; // let port = "http://localhost:3088"; let url = `${port}/apis/v4/bizgaze/integrations/products/salesorderdetailsbyphonenumber/phonenumber/${user_number}`; const config = { url, method: "get", headers: { 'Authorization': `stat 05b2f2ca510344968c65e1ebf49a5595 `, 'Content-Type': 'application/json' } }; debugger let res = await axios(config); const orderDetailsres = JSON.parse(res.data.result); console.log(orderDetailsres); let new_arrr = orderDetailsres; console.log(new_arrr); $(".user_order_details").html(``) console.log('hello') let user_order_details =``; let order_itemTotal = ''; let order_netTotal = '' ; let order_quantity = '' ; let order_taxAmount = '' ; for(let i=0;i
${order_itemTotal} ${order_netTotal} ${order_taxAmount} ${order_quantity}

ORDER NO: ${current.OrderNo}

ORDER PLACED

${current.OrderDate}

TOTAL

₹${updatedCurent_total}

Delivered TO

${current.OrganizationName}

View order details

Invoice

${current.itemname}
`; } $(".user_order_details").append(user_order_details); $('.order_details_main_container').click(function(){ let current_serial_no= $(this).find('.serial_no').text(); // window.localStorage.setItem('orderDate',current_order_date); window.localStorage.setItem('orderSerialno',current_serial_no); window.localStorage.setItem('Userphonenumber',user_number); $(this).attr('href','./orderdetails.html') }) } function toasterOpts(){ toastr.options = { "closeButton": true, "debug": false, "newestOnTop": true, "progressBar": true, "positionClass": "toast-top-center", "preventDuplicates": true, "onclick": null, "showDuration": "300", "hideDuration": "1000", "timeOut": "5000", "extendedTimeOut": "1000", "showEasing": "swing", "hideEasing": "linear", "showMethod": "fadeIn", "hideMethod": "fadeOut" } }