receipt bill order pdf

This commit is contained in:
phyusin
2018-12-06 11:16:04 +06:30
parent 9c45ee0b8b
commit 2acc4ae5c3
2 changed files with 8 additions and 8 deletions

View File

@@ -326,15 +326,15 @@ class Printer::ReceiptPrinter < Printer::PrinterWorker
begin begin
if count == 1 if count == 1
#no print in cloud server #no print in cloud server
# if ENV["SERVER_MODE"] != "cloud" if ENV["SERVER_MODE"] != "cloud"
self.print(filename, printer_name) self.print(filename, printer_name)
# end end
else else
filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf" filename = "public/receipts/receipt_bill_#{receipt_no}_#{count}.pdf"
#no print in cloud server # no print in cloud server
# if ENV["SERVER_MODE"] != "cloud" if ENV["SERVER_MODE"] != "cloud"
self.print(filename, printer_name) self.print(filename, printer_name)
# end end
end end
count -= 1 count -= 1

View File

@@ -325,10 +325,10 @@ class ReceiptBillOrderPdf < Prawn::Document
move_down line_move move_down line_move
y_position = cursor y_position = cursor
bounding_box([0, y_position], :width =>self.label_width) do 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 end
bounding_box([self.item_description_width,y_position], :width =>self.label_width, :height => self.item_height) do 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 => -3, :size => self.item_font_size,:align => :left text "Thank You! See you Again", :left_margin => -5, :size => self.item_font_size - 1,:align => :left
end end
move_down line_move move_down line_move