Sha256: b7bca3f015d213a242eeb331239f3773c9c258d510b2bc1da96b9309a5a913c3

Contents?: true

Size: 825 Bytes

Versions: 21

Compression:

Stored size: 825 Bytes

Contents

<% if adjustments.eligible.exists? %>
  <fieldset class="no-border-bottom">
    <legend><%= title %></legend>
    <table>
      <thead>
        <tr>
          <th><%= Spree::Adjustment.human_attribute_name(:name)%></th>
          <th><%= Spree::Adjustment.human_attribute_name(:amount)%></th>
        </tr>
      </thead>
      <tbody id="order-charges" data-hook="order_details_adjustments"  class="with-border">
        <% adjustments.eligible.group_by(&:label).each do |label, adjustments| %>
          <tr class="total">
            <td><strong><%= label %>:</strong></td>
            <td class="total align-center"><span><%= Spree::Money.new(adjustments.sum(&:amount), currency: adjustments.first.order.try(:currency)) %></span></td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </fieldset>
<% end %>

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
solidus_backend-2.1.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.3 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.4.2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.3.2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.4.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.1.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.1.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.1.0.beta1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.4.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.4.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.0.0.beta1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.4.0.beta1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.3.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.3.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.3.0.rc2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-1.3.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb