reorder the totals section

This commit is contained in:
Mohamed ABDELLANI
2023-10-19 11:24:14 +01:00
parent b7f601d140
commit 716cf3e522

View File

@@ -50,9 +50,9 @@
%tfoot
%tr
%td{:align => "right", :colspan => "5"}
%strong= @order.has_taxes_included ? t(:total_incl_tax) : t(:total_excl_tax)
%strong= t(:total_excl_tax)
%td{:align => "right", :colspan => "2"}
%strong= @order.has_taxes_included ? @order.display_total : @order.display_checkout_total_less_tax
%strong= @order.display_checkout_total_less_tax
- @order.display_checkout_taxes_hash.each do |tax|
%tr
%td{:align => "right", :colspan => "5"}
@@ -61,8 +61,8 @@
= tax[:amount]
%tr
%td{:align => "right", :colspan => "5"}
= @order.has_taxes_included ? t(:total_excl_tax) : t(:total_incl_tax)
%strong= t(:total_incl_tax)
%td{:align => "right", :colspan => "2"}
= @order.has_taxes_included ? @order.display_checkout_total_less_tax : @order.display_total
%strong= @order.display_total
%p