Sha256: ee8b4ff17624228af54249348f6d0a38a65fa1f4e1fc98433780b2cb5212d326

Contents?: true

Size: 1.61 KB

Versions: 6

Compression:

Stored size: 1.61 KB

Contents

.panel.panel-default
  .panel-heading
    = t('tienda.orders.order_items')
  .panel-body
    %table.table.table-hover
      %thead
        %tr
          %th.qty= t('tienda.orders.qty')
          %th= t('tienda.orders.item')
          %th= t('tienda.orders.sku')
          %th.money= t('tienda.orders.cost')
          %th.money= t('tienda.orders.price')
          %th.money= Tienda.settings.tax_name
          %th.money= t('tienda.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

6 entries across 6 versions & 1 rubygems

Version Path
tienda-2.1.3 app/views/tienda/orders/_order_items.html.haml
tienda-2.1.2 app/views/tienda/orders/_order_items.html.haml
tienda-2.1.1 app/views/tienda/orders/_order_items.html.haml
tienda-2.1.0 app/views/tienda/orders/_order_items.html.haml
tienda-2.0.2 app/views/tienda/orders/_order_items.html.haml
tienda-2.0.1 app/views/tienda/orders/_order_items.html.haml