PATH:
home
/
lab2454c
/
costbloc.com
/
public
/
dist
/
js
/
custom
"use strict"; if ($('.main-body .page-wrapper').find('#invoice-view-container').length) { var maxQty = 1; let orderDate = $('#order_date').val(); $('#order_date').daterangepicker(selectFromTo(orderDate.length > 0 ? orderDate : null)); let deliveryDate = $('#deliveryDate').val(); if (typeof deliveryDate != 'undefined') { $('#deliveryDate').daterangepicker(selectFromTo(deliveryDate.length > 0 ? deliveryDate : null)); } $('.select2').select2(); $(document).on('click', '#refundApply', function(e) { e.preventDefault(); let orderDetailId = $(this).attr('data-detailId'); $('#order_detail_id').val(orderDetailId); maxQty = parseInt($(this).attr('data-qty')); $('#refundQty').text(1); $('#refund-store').modal('show'); }); $(document).on('click', '#refundQtyDec', function(e) { e.preventDefault(); let qty = parseInt($('#refundQty').text()); qty = qty - 1; if (qty > 0) { $('#refundQty').text(qty); } $('#quantity_sent').val(qty); }); $(document).on('click', '#refundQtyInc', function(e) { e.preventDefault(); let qty = parseInt($('#refundQty').text()); qty = qty + 1; if (qty <= maxQty) { $('#refundQty').text(qty); } $('#quantity_sent').val(qty); }); } if ($('.main-body .page-wrapper').find('#vendor-order-view-container, #invoice-view-container').length) { $(".accordion").on('click', function() { $(this).siblings().toggle(500); var icon = $(this).find('.drop-down-icon'); if (icon.hasClass('rotate-180')) { icon.removeClass('rotate-180'); icon.addClass('rotate-0'); } else { icon.removeClass('rotate-0'); icon.addClass('rotate-180'); } }); } if ($('.main-body .page-wrapper').find('#vendor-invoice-view-container').length) { (function () { var previous; $(".status").on('focus', function () { previous = this.value; }).on('change', function() { swal({ title: jsLang('Are you sure?'), icon: "warning", buttons: true, dangerMode: true, }) .then((willDelete) => { if (willDelete) { let status = $(this).val(); let detailId = $(this).attr('data-id'); let data = { 'id' : detailId, 'status_id' : status, }; clickOnSave("/orders/change-status", "POST", data); if (paymentStatus != "Paid" && finalOrderStatus == status) { $(this).val(previous); } else if (finalOrderStatus == status && paymentStatus == "Paid") { $(this).attr('disabled', 'disabled'); } } else { $(this).val(previous); swal(jsLang('Your data is safe!')); } }); }); })(); }
[-] create-product.min.js
[edit]
[-] refund.js
[edit]
[-] shops.js
[edit]
[-] commission.min.js
[edit]
[-] user.min.js
[edit]
[-] installer.js
[edit]
[-] category.min.js
[edit]
[+]
site
[-] jquery.blockUI.js
[edit]
[-] category.js
[edit]
[-] create-product.js
[edit]
[-] refund.min.js
[edit]
[+]
..
[-] shipping.min.js
[edit]
[-] user.js
[edit]
[-] jquery.blockUI.min.js
[edit]
[-] option.min.js
[edit]
[-] users-activity-list.js
[edit]
[-] attribute.min.js
[edit]
[-] email-configuration.min.js
[edit]
[-] dashboard.js
[edit]
[-] order.min.js
[edit]
[-] delete-modal.js
[edit]
[-] withdrawal.js
[edit]
[-] product-setting.js
[edit]
[-] validation.js
[edit]
[-] vendors.min.js
[edit]
[-] shops.min.js
[edit]
[-] roles.js
[edit]
[-] review.js
[edit]
[-] common.min.js
[edit]
[-] geolocale-suggestion.min.js
[edit]
[-] custom-category.js
[edit]
[-] product.js
[edit]
[-] order-invoice.min.js
[edit]
[-] common.js
[edit]
[-] product_list.js
[edit]
[-] settings.js
[edit]
[-] permission.min.js
[edit]
[-] coupon.js
[edit]
[-] export.js
[edit]
[-] yajra-custom.min.js
[edit]
[-] users-activity-list.min.js
[edit]
[-] finance.min.js
[edit]
[-] geolocale-suggestion.js
[edit]
[-] option.js
[edit]
[-] newsletter.min.js
[edit]
[-] order.js
[edit]
[-] role-permission.js
[edit]
[-] brand.min.js
[edit]
[-] transaction.js
[edit]
[-] popup.min.js
[edit]
[-] validation.min.js
[edit]
[-] templates.min.js
[edit]
[-] attribute.js
[edit]
[-] brand.js
[edit]
[-] app-layout.js
[edit]
[-] preference.js
[edit]
[-] invoice.js
[edit]
[-] order-invoice.js
[edit]
[-] yajra-export.js
[edit]
[-] product-setting.min.js
[edit]
[-] yajra-custom.js
[edit]
[-] installer.min.js
[edit]
[-] invoice.min.js
[edit]
[-] product_list.min.js
[edit]
[-] email-configuration.js
[edit]
[-] custom-category.min.js
[edit]
[-] settings.min.js
[edit]
[-] yajra-export.min.js
[edit]
[-] withdrawal.min.js
[edit]
[-] payment.js
[edit]
[-] preference.min.js
[edit]
[-] roles.min.js
[edit]
[-] finance.js
[edit]
[-] app-layout.min.js
[edit]
[-] permission.js
[edit]
[-] transaction.min.js
[edit]
[-] popup.js
[edit]
[-] order_status.min.js
[edit]
[-] commission.js
[edit]
[-] coupon.min.js
[edit]
[-] shipping.js
[edit]
[-] review.min.js
[edit]
[-] templates.js
[edit]
[-] delete-modal.min.js
[edit]
[-] vendors.js
[edit]
[-] order_status.js
[edit]
[-] dashboard.min.js
[edit]
[-] newsletter.js
[edit]
[-] product.min.js
[edit]
[-] export.min.js
[edit]