fixed void/foc receipt print
This commit is contained in:
@@ -115,7 +115,7 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
|
||||
|
||||
filename = "#{directory_name}/receipt_bill_#{sale_data.receipt_no}#{count != 1 ? "_#{count}" : ''}.pdf"
|
||||
pdf.render_file filename
|
||||
if ['Frt', 'Re-print'].include? printed_status || !Lookup.where(lookup_type: "ReceiptPdfView").pluck(:value).include?('1')
|
||||
if (['Frt', 'Re-print'].include? printed_status) || (!Lookup.where(lookup_type: "ReceiptPdfView").pluck(:value).include?('1'))
|
||||
#no print in cloud server
|
||||
puts "SERVER_MODE #{ENV["SERVER_MODE"]}"
|
||||
if ENV["SERVER_MODE"] != "cloud"
|
||||
|
||||
Reference in New Issue
Block a user