async function bindOrderDetails() { let user_number =$('.User_phoneum').text(); debugger // 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') // $.each(new_arrr, function (key, value) { // console.log("a", value); // $(".user_order_details").append(user_order_details); // }); 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 PLACED

${current.OrderDate}

TOTAL

₹${updatedCurent_total}

Delivered TO

${current.OrganizationName}

ORDER NO: ${current.OrderNo}

View order details

Invoice

${current.itemname}
`; } $(".user_order_details").append(user_order_details); // $('.order_details_main_container').click(function(){ // window.localStorage.setItem("orderNumber", current.OrderNo); // window.localStorage.setItem("orderDate", current.OrderNo); // }); $('.order_details_main_container').click(function(){ let current_order_date= $(this).find('.order_date').text(); let current_serial_no= $(this).find('.serial_no').text(); let current_item_name= $(this).find('.order_item_name').text(); let current_order_itemTotal =$(this).find('.order_itemTotal').text(); let current_order_netTotal =$(this).find('.order_netTotal').text(); let current_order_tax =$(this).find('.order_tax').text(); let current_order_qty =$(this).find('.order_qty').text(); let order_item_img= $('.order_item_name').attr('src'); window.localStorage.setItem('orderDate',current_order_date); window.localStorage.setItem('orderSerialno',current_serial_no); window.localStorage.setItem('orderItemname',current_item_name); window.localStorage.setItem('orderitemTotal',current_order_itemTotal); window.localStorage.setItem('netTotal',current_order_netTotal) window.localStorage.setItem('Qty',current_order_qty) window.localStorage.setItem('tax',current_order_tax) window.localStorage.setItem('imgsrc',order_item_img) debugger; // console.log(get_local_orderDate,get_local_orderSerialno) $(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" } }