From 2b1d7923dac22bd568219a813d5d189cd1ddca8a Mon Sep 17 00:00:00 2001 From: Mohamed ABDELLANI Date: Thu, 14 Dec 2023 16:20:59 +0100 Subject: [PATCH] remove ':' after the shipping category on the invoice template --- app/views/spree/admin/orders/_invoice_table4.html.haml | 2 +- spec/system/admin/invoice_print_spec.rb | 4 ++-- 2 files 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 d8527c8c29f..82a7c57d280 100644 --- a/app/views/spree/admin/orders/_invoice_table4.html.haml +++ b/app/views/spree/admin/orders/_invoice_table4.html.haml @@ -37,7 +37,7 @@ = item.display_amount_with_adjustments_and_with_taxes %tr %td - %strong= "#{@order.shipping_method.category} : " + %strong= "#{@order.shipping_method.category} " = "(#{@order.shipping_method.name})" %td{:align => "right"} %td{:align => "right"} diff --git a/spec/system/admin/invoice_print_spec.rb b/spec/system/admin/invoice_print_spec.rb index cdd126e2089..790db07849e 100644 --- a/spec/system/admin/invoice_print_spec.rb +++ b/spec/system/admin/invoice_print_spec.rb @@ -546,7 +546,7 @@ expect(page).to have_content "#{enterprise_fee.name} fee by $104.35 15.0% $120.00" expect(page).to have_content "coordinator #{user1.enterprises.first.name}" # Shipping - expect(page).to have_content "Delivery :(#{shipping_method_name}) $91.41 10.0% $100.55" + expect(page).to have_content "Delivery (#{shipping_method_name}) $91.41 10.0% $100.55" # Tax totals expect(page).to have_content "Total tax (10.0%): $9.14 " \ "Total tax (15.0%): $15.65 Total tax (20.0%): $250.08" @@ -649,7 +649,7 @@ expect(page).to have_content "#{enterprise_fee.name} fee by $120.00 15.0% $138.00" expect(page).to have_content "coordinator #{user1.enterprises.first.name}" # Shipping - expect(page).to have_content "Delivery :(#{shipping_method_name}) $100.55 10.0% $110.61" + expect(page).to have_content "Delivery (#{shipping_method_name}) $100.55 10.0% $110.61" # Tax totals expect(page).to have_content "Total tax (10.0%): $10.06 " \ "Total tax (15.0%): $18.00 Total tax (20.0%): $300.09"