Sha256: 810fbf01606a31e2e438cfe002ada2cd830a8328edd76c14e618e1dbd3c09653

Contents?: true

Size: 969 Bytes

Versions: 63

Compression:

Stored size: 969 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>
        <tr>
          <th><%= Spree.t('name')%></th>
          <th><%= Spree.t('amount')%></th>
        </tr>
      </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

63 entries across 63 versions & 1 rubygems

Version Path
spree_backend-3.7.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.6 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.5 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.4 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.3 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.2 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.1 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.0 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.5.0 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.3.6 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.2.8 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.6.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.5.0.rc2 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.5.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.4.5 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.3.5 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.4.4 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.4.3 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.3.4 app/views/spree/admin/orders/_adjustments.html.erb
spree_backend-3.2.7 app/views/spree/admin/orders/_adjustments.html.erb