Sha256: a71140247eebd81d2f32ef8107d46c631ecd6a3b76a4444a589208426d54aa33
Contents?: true
Size: 748 Bytes
Versions: 3
Compression:
Stored size: 748 Bytes
Contents
totals = [] totals << [Prawn::Table::Cell.new( :text => Spree.t(:subtotal), :font_style => :bold), @order.display_item_total.to_s] @order.adjustments.eligible.each do |charge| totals << [Prawn::Table::Cell.new( :text => charge.label + ":", :font_style => :bold), charge.display_amount.to_s] end totals << [Prawn::Table::Cell.new( :text => Spree.t(:order_total), :font_style => :bold), @order.display_total.to_s] bounding_box [bounds.right - 500, bounds.bottom + (totals.length * 18)], :width => 500 do table totals, :position => :right, :border_width => 0, :vertical_padding => 2, :horizontal_padding => 6, :font_size => 9, :column_widths => { 0 => 425, 1 => 75 } , :align => { 0 => :right, 1 => :right } end
Version data entries
3 entries across 3 versions & 1 rubygems