Sha256: 8286c89ed801e1c01aaeb393164ae10e734ec41186b9c23d67ec5ceb63e7b561

Contents?: true

Size: 943 Bytes

Versions: 34

Compression:

Stored size: 943 Bytes

Contents

<% if adjustments.eligible.exists? %>
  <div class="panel panel-default">
    <div class="panel-heading">
      <h1 class="panel-title">
        <%= title %>
      </h1>
    </div>
    
    <table class="table table-bordered">
      <thead>
        <th><%= Spree.t('name')%></th>
        <th><%= Spree.t('amount')%></th>
      </thead>
      <tbody id="order-charges" data-hook="order_details_adjustments">
        <% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
          <tr class="total">
            <td>
              <strong><%= label %>:</strong>
            </td>
            <td class="total">
              <span>
                <%= Spree::Money.new(
                  adjustments.sum(&:amount), 
                  currency: adjustments.first.order.try(:currency)
                ) %>
              </span>
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </div>
<% end %>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
spree_backend-3.1.14 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.13 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.12 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.11 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.10 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.9 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.8 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.7 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.6 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.5 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.4 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.3 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.2 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.0.10 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.1 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.0 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.0.rc4 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.0.9 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.0.rc3 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.1.0.rc2 app/views/spree/admin/orders/_adjustments.html.erb