order item edit and print

This commit is contained in:
Yan
2017-11-28 11:38:08 +06:30
parent 8b6e909220
commit 494d90c111
6 changed files with 11 additions and 13 deletions

View File

@@ -74,6 +74,10 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
# print as print copies in printer setting
count = printer_settings.print_copies
# override print copies for print worker loop
print_settings.print_copies = 1
print_settings.save!
begin
if count == 1
pdf.render_file "tmp/receipt_bill_#{sale_data.receipt_no}.pdf"