Sha256: 3b0216b9b6817cb44235f9c82f94108c23f1642e02a39514e2ecd6433e2609c3

Contents?: true

Size: 1.89 KB

Versions: 11

Compression:

Stored size: 1.89 KB

Contents

"use strict";var KTAppEcommerceReportShipping=function(){var t,e;return{init:function(){(t=document.querySelector("#kt_ecommerce_report_shipping_table"))&&(t.querySelectorAll("tbody tr").forEach((t=>{const e=t.querySelectorAll("td"),r=moment(e[0].innerHTML,"MMM DD, YYYY").format();e[0].setAttribute("data-order",r)})),e=$(t).DataTable({info:!1,order:[],pageLength:10}),(()=>{var t=moment().subtract(29,"days"),e=moment(),r=$("#kt_ecommerce_report_shipping_daterangepicker");function o(t,e){r.html(t.format("MMMM D, YYYY")+" - "+e.format("MMMM D, YYYY"))}r.daterangepicker({startDate:t,endDate:e,ranges:{Today:[moment(),moment()],Yesterday:[moment().subtract(1,"days"),moment().subtract(1,"days")],"Last 7 Days":[moment().subtract(6,"days"),moment()],"Last 30 Days":[moment().subtract(29,"days"),moment()],"This Month":[moment().startOf("month"),moment().endOf("month")],"Last Month":[moment().subtract(1,"month").startOf("month"),moment().subtract(1,"month").endOf("month")]}},o),o(t,e)})(),(()=>{const e="Shipping Report";new $.fn.dataTable.Buttons(t,{buttons:[{extend:"copyHtml5",title:e},{extend:"excelHtml5",title:e},{extend:"csvHtml5",title:e},{extend:"pdfHtml5",title:e}]}).container().appendTo($("#kt_ecommerce_report_shipping_export")),document.querySelectorAll("#kt_ecommerce_report_shipping_export_menu [data-kt-ecommerce-export]").forEach((t=>{t.addEventListener("click",(t=>{t.preventDefault();const e=t.target.getAttribute("data-kt-ecommerce-export");document.querySelector(".dt-buttons .buttons-"+e).click()}))}))})(),document.querySelector('[data-kt-ecommerce-order-filter="search"]').addEventListener("keyup",(function(t){e.search(t.target.value).draw()})),(()=>{const t=document.querySelector('[data-kt-ecommerce-order-filter="status"]');$(t).on("change",(t=>{let r=t.target.value;"all"===r&&(r=""),e.column(3).search(r).draw()}))})())}}}();KTUtil.onDOMContentLoaded((function(){KTAppEcommerceReportShipping.init()}));

Version data entries

11 entries across 5 versions & 1 rubygems

Version Path
phcthemes_admin_panel_pack-7.0.0 app/assets/dist/themes/metronic/theme27/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.3 app/assets/dist/themes/metronic/theme13/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.3 app/assets/dist/themes/metronic/theme21/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.2 app/assets/dist/themes/metronic/theme13/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.2 app/assets/dist/themes/metronic/theme21/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.2 app/assets/dist/themes/metronic/theme27/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.1 app/assets/dist/themes/metronic/theme13/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.1 app/assets/dist/themes/metronic/theme21/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.1 app/assets/dist/themes/metronic/theme27/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.0 app/assets/dist/themes/metronic/theme_21/js/custom/apps/ecommerce/reports/shipping/shipping.js
phcthemes_admin_panel_pack-6.0.0 app/assets/dist/themes/metronic/theme_13/js/custom/apps/ecommerce/reports/shipping/shipping.js