From a5fd0608c39084bfa220373a34223d3590bad489 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Wed, 18 Oct 2023 14:01:03 +0100 Subject: [PATCH] align the columns of the totals rows --- app/views/spree/admin/orders/_invoice_table4.html.haml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/spree/admin/orders/_invoice_table4.html.haml b/app/views/spree/admin/orders/_invoice_table4.html.haml index 6b202f7b4d..573bd1cf83 100644 --- a/app/views/spree/admin/orders/_invoice_table4.html.haml +++ b/app/views/spree/admin/orders/_invoice_table4.html.haml @@ -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