receipt bill order

This commit is contained in:
phyusin
2018-12-10 16:24:02 +06:30
parent 2861f07a0a
commit afae9b6579

View File

@@ -214,15 +214,15 @@ class ReceiptBillOrderPdf < Prawn::Document
if !order_reservation.delivery_type.nil? && order_reservation.delivery_fee.to_f > 0
y_position = cursor
bounding_box([0, y_position], :width =>self.price_width, :height => self.item_height) do
bounding_box([0, y_position], :width =>self.qty_width, :height => self.item_height) do
text "Delivery Charges" , :size => self.item_font_size, :align => :left
end
bounding_box([self.price_width,y_position], :width =>self.description_width - 5, :height => self.item_height) do
bounding_box([self.qty_width,y_position], :width =>self.item_width, :height => self.item_height) do
text " (#{order_reservation.delivery_type})", :size => self.item_font_size,:align => :right
end
bounding_box([self.description_width - 5,y_position], :width =>self.label_width, :height => self.item_height) do
bounding_box([self.item_width,y_position], :width =>self.label_width, :height => self.item_height) do
text "#{number_with_precision(order_reservation.delivery_fee, :precision => precision.to_i, :delimiter => delimiter)}", :size => self.item_font_size,:align => :right
end
end