diff --git a/app/views/origami/table_invoices/show.html.erb b/app/views/origami/table_invoices/show.html.erb index 5fb864fe..c7063053 100644 --- a/app/views/origami/table_invoices/show.html.erb +++ b/app/views/origami/table_invoices/show.html.erb @@ -472,7 +472,7 @@ $('#void').on('click',function () { type: 'POST', url: ajax_url, data: "remark="+ remark + "&sale_id=" + sale_id + "&access_code=" + access_code , - success: function () { + success: function (result) { // For Server Print - from jade if ($("#server_mode").val() == "cloud") { code2lab.printFile(result.filepath.substr(6), result.printer_url); @@ -509,7 +509,7 @@ $('#foc').click(function() { swal({ title: "Information!", text: 'Thank You !', - }, function () { + }, function (result) { // For Server Print - from jade if ($("#server_mode").val() == "cloud") { code2lab.printFile(result.filepath.substr(6), result.printer_url);