mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
align the columns of the totals rows
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user