Sha256: ebad2469d04989f6978690528ade9bee0e64600004f53385b98d82b562229f64

Contents?: true

Size: 897 Bytes

Versions: 63

Compression:

Stored size: 897 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

63 entries across 63 versions & 1 rubygems

Version Path
spree_backend-3.4.2 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.3 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.6 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.4.1 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.4.0 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.4.0.rc2 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.4.0.rc1 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.2 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.5 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.1 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.4 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.0 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.0.rc4 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.0.rc3 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.3 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.2 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.0.rc2 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.3.0.rc1 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.1 app/views/spree/admin/reports/sales_total.html.erb
spree_backend-3.2.0 app/views/spree/admin/reports/sales_total.html.erb