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

Version Path
effective_orders-3.2.3 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.2.2 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.2.1 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.2.0 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.1.7 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.1.6 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.1.4 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.1.3 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.1.0 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.0.4 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.0.3 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.0.2 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.0.1 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-3.0.0 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.2.4 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.2.3 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.2.2 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.2.1 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.2.0 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml
effective_orders-2.1.17 app/views/effective/orders_mailer/order_receipt_to_seller.html.haml