receipt bill order pdf
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user