From 6b83cf5230d62d83b510200a3017f5f3c81e6e44 Mon Sep 17 00:00:00 2001 From: Yan Date: Thu, 29 Mar 2018 16:30:59 +0630 Subject: [PATCH] edit for cloud print --- app/views/origami/home/show.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/origami/home/show.html.erb b/app/views/origami/home/show.html.erb index da3c6e55..3f31faa1 100755 --- a/app/views/origami/home/show.html.erb +++ b/app/views/origami/home/show.html.erb @@ -726,9 +726,9 @@ createReceiptNoInFirstBillData(receipt_no,""); // For Server Print - from jade - if ($("#server_mode").val() == "cloud") { - code2lab.printFile("/home/yan/workspace/sxrestaurant/" + result.filepath, result.printer_url); - } + //if ($("#server_mode").val() == "cloud") { + code2lab.printFile(result.filepath.substr(6), result.printer_url); + // } // console.log(result); // code2lab.printBill(result.filepath, result.printer_model, result.printer_url);