Sha256: 2bc00978b3babef7e4e8c4d170861187a506d96600a13209ff611f6def3d50f1
Contents?: true
Size: 597 Bytes
Versions: 46
Compression:
Stored size: 597 Bytes
Contents
%p.effective-orders-receipt-info= @subject %table.table %thead %tr %th Item %th Price %tbody - @order_items.each do |item| %tr %td - if item.quantity > 1 = "#{item.quantity}x " = item.title %td= price_to_currency(item.subtotal) %tfoot %tr %th Subtotal %td= price_to_currency(@order_items.map { |oi| oi.subtotal }.sum) %tr %th Tax %td= price_to_currency(@order_items.map { |oi| oi.tax }.sum) %tr %th Total %td= price_to_currency(@order_items.map { |oi| oi.total }.sum)
Version data entries
46 entries across 46 versions & 1 rubygems