Created
October 12, 2020 19:08
-
-
Save puppe1990/227207646ae9e9901355526305f371fd to your computer and use it in GitHub Desktop.
printOrderDC.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var order_code = [5647, 5648] | |
for (let index = 0; index <= order_code.length; index++) { | |
id = order_code[index] + 1 | |
$('.delete').eq(index).attr('name', 'data[Form][selected][' + id + ']') | |
$('.delete').eq(index).attr('data-id', id) | |
$('.delete').eq(index).attr('data-pedido', order_code[index]) | |
} | |
0 < $(".delete:checked").length ? ($("#pedidoViewForm").prop("action", base_url + "venda/pedidos/printOrderDC"), $("#pedidoViewForm").prop("target", "_blank"), $("#pedidoViewForm").submit()) : Backend.modalInfo('<span class="modal-alert-message-content">Nenhum pedido selecionado</span>', | |
"oka") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment