add options in oqs

This commit is contained in:
Yan
2017-06-22 17:32:13 +06:30
parent b30d81508c
commit 7bf2499e83
8 changed files with 62 additions and 44 deletions

View File

@@ -92,6 +92,18 @@ class OrderSummaryPdf < Prawn::Document
end
move_down 5
# add option
options = odi.options == "[]"? "" : odi.options
if options != ""
y_position = cursor
bounding_box([0,y_position], :width => self.item_width, :height => self.item_height) do
text "#{options}", :size => self.item_font_size,:align => :left
end
move_down 5
end
end
end