<%= Spree.t(:order_summary) %>

<%= Spree.t(:subtotal) %>:
<%= order.display_item_total.to_html %>
<% if order.line_item_adjustments.nonzero.exists? %> <% order.line_item_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
<%= label %>
<%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
<% end %> <% end %> <% order.all_adjustments.nonzero.tax.eligible.group_by(&:label).each do |label, adjustments| %>
<%= label %>
<% tax_total = Spree::Money.new(adjustments.sum(&:amount), currency: order.currency) %>
' thousands-separator='<%= tax_total.thousands_separator %>' decimal-mark='<%= tax_total.decimal_mark %>' precision='<%= Money::Currency.find(order.currency).exponent %>' > <%= tax_total.to_html %>
<% end %> <% if order.passed_checkout_step?("address") && order.shipments.any? %>
<%= Spree.t(:shipping) %>:
<% shipping_total = Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency) %>
<%= shipping_total.to_html %>
<% if order.shipment_adjustments.nonzero.exists? %> <% order.shipment_adjustments.nonzero.promotion.eligible.group_by(&:label).each do |label, adjustments| %>
<%= label %>:
<%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
<% end %> <% end %> <% end %> <% if order.adjustments.nonzero.eligible.exists? %> <% order.adjustments.nonzero.eligible.each do |adjustment| %> <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount.zero?) %>
<%= adjustment.label %>:
<%= adjustment.display_amount.to_html %>
<% end %> <% end %>
<%= Spree.t(:total) %>:
<%= order.display_total.to_html %>
<% if order.using_store_credit? %>
<%= Spree.t(:store_credit_name) %>:
<%= order.display_total_applied_store_credit.to_html %>
<% end %>