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

<% if order.line_item_adjustments.exists? %> <% order.line_item_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %> <% end %> <% end %> <% order.all_adjustments.tax.eligible.group_by(&:label).each do |label, adjustments| %> <% end %> <% if order.checkout_steps.include?("delivery") && order.shipments.any? %> <% if order.shipment_adjustments.exists? %> <% order.shipment_adjustments.promotion.eligible.group_by(&:label).each do |label, adjustments| %> <% end %> <% end %> <% end %> <% if order.adjustments.eligible.exists? %> <% order.adjustments.eligible.each do |adjustment| %> <% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %> <% end %> <% end %>
<%= Spree.t(:item_total) %>: <%= order.display_item_total.to_html %>
<%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
<%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
<%= Spree.t(:shipping_total) %> <%= Spree::Money.new(order.shipments.to_a.sum(&:cost), currency: order.currency).to_html %>
<%= label %> <%= Spree::Money.new(adjustments.sum(&:amount), currency: order.currency).to_html %>
<%= adjustment.label %>: <%= adjustment.display_amount.to_html %>
<%= Spree.t(:order_total) %>: <%= order.display_total.to_html %>