oqs print formatted

This commit is contained in:
Yan
2017-06-14 11:21:37 +06:30
parent 7e35850c69
commit 7d7ac9fe06
2 changed files with 2 additions and 2 deletions

View File

@@ -41,7 +41,7 @@ class OrderItemPdf < Prawn::Document
end
move_down 5
y_position = cursor
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
text "Date: #{order_at.strftime("%Y-%m-%d %I:%M %p")}", :size => self.item_font_size,:align => :left
end

View File

@@ -41,7 +41,7 @@ class OrderSummaryPdf < Prawn::Document
end
move_down 5
y_position = cursor
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
text "Date: #{order_at.strftime("%Y-%m-%d %I:%M %p")}", :size => self.item_font_size,:align => :left
end