diff --git a/app/overrides/spree/admin/orders/_adjustments/adjustments.html.erb.deface b/app/overrides/spree/admin/orders/_adjustments/adjustments.html.erb.deface new file mode 100644 index 000000000..152a6de1a --- /dev/null +++ b/app/overrides/spree/admin/orders/_adjustments/adjustments.html.erb.deface @@ -0,0 +1,21 @@ + +<% eligible_adjustments = adjustments.eligible%> + + <% eligible_adjustments.group_by(&:label).each do |label, adjustments| %> + + + <%= label %>: + + + + <%= Spree::Money.new( + adjustments.sum(&:amount), + currency: adjustments.first.order.try(:currency) + ) %> + + <%= " - Cap(#{number_to_currency(eligible_adjustments.promotion.first.source.promotion&.cap, unit: '')})" if eligible_adjustments.promotion.present? %> + + + + <% end %> + \ No newline at end of file