receipt bill order pdf

This commit is contained in:
phyusin
2018-12-06 11:16:04 +06:30
parent 9c45ee0b8b
commit 2acc4ae5c3
2 changed files with 8 additions and 8 deletions

View File

@@ -326,15 +326,15 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
begin
if count == 1
#no print in cloud server
# if ENV["SERVER_MODE"] != "cloud"
if ENV["SERVER_MODE"] != "cloud"
self.print(filename, printer_name)
# end
end
else
filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf"
#no print in cloud server
# if ENV["SERVER_MODE"] != "cloud"
# no print in cloud server
if ENV["SERVER_MODE"] != "cloud"
self.print(filename, printer_name)
# end
end
end
count -= 1