Skip to content

Commit

Permalink
Merge pull request #11 from SuperGoodSoft/adammathys/fix-tax-adjustme…
Browse files Browse the repository at this point in the history
…nt-display

Fix display of tax adjustments in checkout
waiting-for-dev authored Sep 12, 2022
2 parents 290e027 + f277c93 commit daea696
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions app/views/spree/checkout/_summary.html.erb
Original file line number Diff line number Diff line change
@@ -45,10 +45,9 @@
<% end %>
<% end %>

<% if order.adjustments.nonzero.eligible.exists? %>
<% if order.adjustments.nonzero.non_tax.eligible.exists? %>
<tbody id="summary-order-charges" data-hook>
<% order.adjustments.nonzero.eligible.each do |adjustment| %>
<% next if (adjustment.source_type == 'Spree::TaxRate') and (adjustment.amount == 0) %>
<% order.adjustments.nonzero.non_tax.eligible.each do |adjustment| %>
<tr class="total">
<td><%= adjustment.label %>:</td>
<td><%= adjustment.display_amount.to_html %></td>

0 comments on commit daea696

Please sign in to comment.