update print

This commit is contained in:
Aung Myo
2017-06-08 16:52:50 +06:30
parent 26598e2731
commit ea4f50e779
10 changed files with 372 additions and 86 deletions

View File

@@ -74,11 +74,11 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
end
#Bill Receipt Print
def print_crm_order(booking,setting)
def print_crm_order(booking,order_items,setting)
#Use CUPS service
#Generate PDF
#Print
pdf = CrmOrderPdf.new(booking,setting)
pdf = CrmOrderPdf.new(booking,order_items,setting)
pdf.render_file "tmp/print_crm_order.pdf"
self.print("tmp/print_crm_order.pdf")
end