uncomplete print, need for print_settings

This commit is contained in:
Yan
2017-06-02 18:26:44 +06:30
parent 6d705e2860
commit 63be238e09
6 changed files with 29 additions and 6 deletions

View File

@@ -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