Sha256: 82cca9e5c5265885134e9bdd971adedc7d249f9f891a285cb851da539f5195cf
Contents?: true
Size: 1.05 KB
Versions: 12
Compression:
Stored size: 1.05 KB
Contents
<% if adjustments.eligible.exists? %> <div class="card mb-3"> <div class="card-header"> <h5 class="card-title mb-0 h6"> <%= title %> </h5> </div> <div class="table-responsive bg-white"> <table class="table"> <thead class="text-muted"> <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
12 entries across 12 versions & 1 rubygems