diff --git a/app/models/printer/receipt_printer.rb b/app/models/printer/receipt_printer.rb index 2caff4c5..90da7ae8 100755 --- a/app/models/printer/receipt_printer.rb +++ b/app/models/printer/receipt_printer.rb @@ -326,15 +326,15 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker begin if count == 1 #no print in cloud server - # if ENV["SERVER_MODE"] != "cloud" + if ENV["SERVER_MODE"] != "cloud" self.print(filename, printer_name) - # end + end else filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf" - #no print in cloud server - # if ENV["SERVER_MODE"] != "cloud" + # no print in cloud server + if ENV["SERVER_MODE"] != "cloud" self.print(filename, printer_name) - # end + end end count -= 1 diff --git a/app/pdf/receipt_bill_order_pdf.rb b/app/pdf/receipt_bill_order_pdf.rb index 795def42..2410d559 100644 --- a/app/pdf/receipt_bill_order_pdf.rb +++ b/app/pdf/receipt_bill_order_pdf.rb @@ -325,10 +325,10 @@ class ReceiptBillOrderPdf < Prawn::Document move_down line_move y_position = cursor bounding_box([0, y_position], :width =>self.label_width) do - text "#{printed_status}",:style => :bold, :size => header_font_size,:align => :left + text "#{printed_status}",:style => :bold, :size => header_font_size - 1,:align => :left end - bounding_box([self.item_description_width,y_position], :width =>self.label_width, :height => self.item_height) do - text "Thank You! See you Again", :left_margin => -3, :size => self.item_font_size,:align => :left + bounding_box([self.item_description_width,y_position], :width =>self.item_description_width, :height => self.item_height) do + text "Thank You! See you Again", :left_margin => -5, :size => self.item_font_size - 1,:align => :left end move_down line_move