From 716cf3e522ffd24e99c3de2b0bd86dfa57178039 Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Thu, 19 Oct 2023 11:24:14 +0100 Subject: [PATCH] reorder the totals section --- app/views/spree/admin/orders/_invoice_table4.html.haml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/spree/admin/orders/_invoice_table4.html.haml b/app/views/spree/admin/orders/_invoice_table4.html.haml index 3ae997e222..7cbff8b35b 100644 --- a/app/views/spree/admin/orders/_invoice_table4.html.haml +++ b/app/views/spree/admin/orders/_invoice_table4.html.haml @@ -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