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