receipt bill order pdf
This commit is contained in:
@@ -214,11 +214,11 @@ class ReceiptBillOrderPdf < Prawn::Document
|
|||||||
|
|
||||||
if !order_reservation.delivery_type.nil? && order_reservation.delivery_fee.to_f > 0
|
if !order_reservation.delivery_type.nil? && order_reservation.delivery_fee.to_f > 0
|
||||||
y_position = cursor
|
y_position = cursor
|
||||||
bounding_box([0, y_position], :width =>self.qty_width, :height => self.item_height) do
|
bounding_box([0, y_position], :width =>self.qty_width + 10, :height => self.item_height) do
|
||||||
text "Delivery Charges" , :size => self.item_font_size, :align => :left
|
text "Delivery Charges" , :size => self.item_font_size, :align => :left
|
||||||
end
|
end
|
||||||
|
|
||||||
bounding_box([self.qty_width,y_position], :width =>self.item_width, :height => self.item_height) do
|
bounding_box([self.qty_width + 10,y_position], :width =>self.item_width, :height => self.item_height) do
|
||||||
text " (#{order_reservation.delivery_type})", :size => self.item_font_size,:align => :right
|
text " (#{order_reservation.delivery_type})", :size => self.item_font_size,:align => :right
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user