From aa3ca279e0a33c638ff132a8dbab5d8137e85a30 Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 30 Aug 2018 11:06:27 +0630 Subject: [PATCH] first bill for table invoice --- app/views/origami/table_invoices/show.html.erb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);