align the columns of the totals rows

This commit is contained in:
Mohamed ABDELLANI
2023-10-18 14:01:03 +01:00
parent a8f9b29a6d
commit a5fd0608c3

View File

@@ -51,18 +51,18 @@
= adjustment.display_adjustment_tax_rates
%tfoot
%tr
%td{:align => "right", :colspan => "3"}
%td{:align => "right", :colspan => "5"}
%strong= @order.has_taxes_included ? t(:total_incl_tax) : t(:total_excl_tax)
%td{:align => "right", :colspan => "2"}
%strong= @order.has_taxes_included ? @order.display_total : @order.display_checkout_total_less_tax
- @order.display_checkout_taxes_hash.each do |tax|
%tr
%td{:align => "right", :colspan => "3"}
%td{:align => "right", :colspan => "5"}
= t(:tax_total, rate: tax[:percentage])
%td{:align => "right", :colspan => "2"}
= tax[:amount]
%tr
%td{:align => "right", :colspan => "3"}
%td{:align => "right", :colspan => "5"}
= @order.has_taxes_included ? t(:total_excl_tax) : t(:total_incl_tax)
%td{:align => "right", :colspan => "2"}
= @order.has_taxes_included ? @order.display_checkout_total_less_tax : @order.display_total