Sha256: 6d9747b5cb4001da6ad31c7fda3197634381d8be3ad327556eeab37f5340c2e5

Contents?: true

Size: 720 Bytes

Versions: 11

Compression:

Stored size: 720 Bytes

Contents

<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 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>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_backend-2.3.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.2.2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.3.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.3.0.rc3 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.3.0.rc2 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.3.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.3.0.beta1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.2.1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.2.0 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.2.0.rc1 app/views/spree/admin/orders/_adjustments.html.erb
solidus_backend-2.2.0.beta1 app/views/spree/admin/orders/_adjustments.html.erb