Sha256: 52b913c13d82a5d9becfae1af1a9838d7890fc2a0f24054fc543e33c8e700ccd

Contents?: true

Size: 900 Bytes

Versions: 12

Compression:

Stored size: 900 Bytes

Contents

<% content_for :page_title do %>
  <%= link_to Spree.t(:reports), spree.admin_reports_url %> /
  <%= Spree.t(:sales_totals) %>
<% end %>

<div class="well">
  <%= render :partial => 'spree/admin/shared/report_order_criteria' %>
</div>

<table class="table table-bordered admin-report" data-hook="sales_total">
  <thead>
    <tr>
      <th><%= Spree.t(:currency) %></th>
      <th><%= Spree.t(:item_total) %></th>
      <th><%= Spree.t(:adjustment_total) %></th>
      <th><%= Spree.t(:sales_total) %></th>
    </tr>
  </thead>
  <tbody>
    <% @totals.each do |key, row| %>
      <tr>
        <td><%= key %></td>
        <td><%= Spree::Money.new(row[:item_total], { currency: key }) %></td>
        <td><%= Spree::Money.new(row[:adjustment_total], { currency: key }) %></td>
        <td><%= Spree::Money.new(row[:sales_total], { currency: key }) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.13 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.12 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.11 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.10 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.9 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.8 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.7 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.6 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.5 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.4 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.1.3 app/views/spree/admin/reports/sales_total.html.erb