uncomplete print, need for print_settings
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
class Printer::OrderQueuePrinter < Printer::PrinterWorker
|
||||
|
||||
def print_order_item(order_queue_id)
|
||||
def print_order_item(order_id, item_code)
|
||||
#Use CUPS service
|
||||
#Generate PDF
|
||||
#Print
|
||||
pdf = OrderItemPdf.new
|
||||
pdf.render_file "tmp/order_item_queue_#{order_id}_#{order_item_id}" + ".pdf"
|
||||
pdf.render_file "tmp/order_item_queue_#{order_id}_#{item_code}" + ".pdf"
|
||||
self.print("tmp/receipt.pdf")
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user