receipt bill order pdf
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user