From fef6a4ccd036d6d804ac0ac615921be90beb852b Mon Sep 17 00:00:00 2001 From: Aung Myo Date: Thu, 30 Aug 2018 11:50:40 +0630 Subject: [PATCH] foc bill for table invoice --- app/views/origami/table_invoices/show.html.erb | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/app/views/origami/table_invoices/show.html.erb b/app/views/origami/table_invoices/show.html.erb index 0010997a..f7b06d06 100644 --- a/app/views/origami/table_invoices/show.html.erb +++ b/app/views/origami/table_invoices/show.html.erb @@ -505,29 +505,11 @@ $('#foc').click(function() { url: "/origami/payment/cashier/foc", data: params, success:function(result){ - // if (cash >= 0) { - // swal({ - // title: "Information!", - // text: 'Thank You !', - // }, function (result) { - // // For Server Print - from jade - // if ($("#server_mode").val() == "cloud") { - // code2lab.printFile(result.filepath.substr(6), result.printer_url); - // } - // window.location.href = '/origami'; - // }); - // } - alert("hielslsl"); - alert(result) if (cash >= 0) { swal({ title: "Information!", text: 'Thank You !', }, function () { - alert("hi"); - alert(result.filepath); - alert(result.filepath.substr(6)); - alert(result.printer_url); // For Server Print - from jade if ($("#server_mode").val() == "cloud") { code2lab.printFile(result.filepath.substr(6), result.printer_url);