Sha256: 90f928fd6e04c1fbd2ce0d57fb2169d47c87e8f2c51c99036a0d789bc37b1bbe
Contents?: true
Size: 739 Bytes
Versions: 2
Compression:
Stored size: 739 Bytes
Contents
totals = [] totals << [Prawn::Table::Cell.new( :text => Spree.t(:subtotal), :font_style => :bold), @order.display_item_total.to_s] @order.adjustments.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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spree_print_invoice-2.1.4 | app/views/spree/admin/orders/_totals.pdf.prawn |
spree_print_invoice-2.1.3 | app/views/spree/admin/orders/_totals.pdf.prawn |