Sha256: 6708edc3d0aaaaeba77a64d057ad826d7124578c76451e87ca9e7270a4f819b6

Contents?: true

Size: 1.53 KB

Versions: 11

Compression:

Stored size: 1.53 KB

Contents

.order_items
  .table
    %table.data
      %thead
        %tr
          %th.qty= t('shoppe.orders.qty')
          %th= t('shoppe.orders.item')
          %th= t('shoppe.orders.sku')
          %th.money= t('shoppe.orders.cost')
          %th.money= t('shoppe.orders.price')
          %th.money= Shoppe.settings.tax_name
          %th.money= t('shoppe.orders.sub_total')
      %tbody
        - for item in @order.order_items
          %tr
            %td.qty= item.quantity
            %td.product= item.ordered_item.full_name
            %td.sku= item.ordered_item.sku
            %td.money= number_to_currency item.total_cost
            %td.money= number_to_currency item.sub_total
            %td.money= number_to_currency item.tax_amount
            %td.money= number_to_currency item.total
        - if @order.delivery_service
          %td.qty
          %td.product= link_to @order.delivery_service.name, [:edit, @order.delivery_service]
          %td.sku
          %td.money= number_to_currency @order.delivery_cost_price
          %td.money= number_to_currency @order.delivery_price
          %td.money= number_to_currency @order.delivery_tax_amount
          %td.money= number_to_currency @order.delivery_price + @order.delivery_tax_amount
      %tfoot
        %tr
          %td.qty= @order.total_items
          %td{:colspan => 2}
          %td.money= number_to_currency @order.total_cost
          %td.money= number_to_currency @order.total_before_tax
          %td.money= number_to_currency @order.tax
          %td.money= number_to_currency @order.total

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
shoppe-1.1.2 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.1.1 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.1.0 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.9 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.8 app/views/shoppe/orders/_order_items.html.haml
kylekthompson-shoppe-1.0.7 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.7 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.6 app/views/shoppe/orders/_order_items.html.haml
shoppe-paypal-1.1.0 vendor/bundle/ruby/2.1.0/gems/shoppe-1.0.5/app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.5 app/views/shoppe/orders/_order_items.html.haml
shoppe-1.0.3 app/views/shoppe/orders/_order_items.html.haml