Add Moved By in MoveTablePdf

This commit is contained in:
San Wai Lwin
2018-03-28 16:17:41 +06:30
parent ff19f20a18
commit bc922a68c8
3 changed files with 11 additions and 9 deletions

View File

@@ -239,11 +239,11 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
end
#Move Table Print
def print_move_table(printer_settings,to,from,shop_detail,date,type)
def print_move_table(printer_settings,to,from,shop_detail,date,type,moved_by)
#Use CUPS service
#Generate PDF
#Print
pdf = MoveTablePdf.new(printer_settings,to,from,shop_detail,date,type)
pdf = MoveTablePdf.new(printer_settings,to,from,shop_detail,date,type,moved_by)
pdf.render_file "tmp/print_move_table.pdf"
self.print("tmp/print_move_table.pdf")
end