Sha256: e6f0aa8dc1f8bbe02c0e72c791ac55df73dca6c2ff6dcd66a02491ff153a9ba2
Contents?: true
Size: 1.04 KB
Versions: 21
Compression:
Stored size: 1.04 KB
Contents
<% if adjustments.eligible.exists? %> <div class="card mb-3"> <div class="card-header"> <h1 class="card-title mb-0 h5"> <%= title %> </h1> </div> <div class="table-responsive"> <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> </div> <% end %>
Version data entries
21 entries across 21 versions & 1 rubygems