From fa004d0897da8e31bdd16aeb78be4e252b823935 Mon Sep 17 00:00:00 2001 From: wandji20 Date: Tue, 6 Aug 2024 11:23:50 +0100 Subject: [PATCH] Remove wicked pdf stylsheet include tag in order report pdf [OFN-12214] --- app/helpers/application_helper.rb | 9 --------- app/views/spree/admin/orders/invoice.html.haml | 2 -- app/views/spree/admin/orders/invoice2.html.haml | 2 -- app/views/spree/admin/orders/invoice4.html.haml | 2 -- 4 files changed, 15 deletions(-) diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 2f470529b2..f7787e35b9 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -61,15 +61,6 @@ module ApplicationHelper classes << shopfront_layout end - def pdf_stylesheet_pack_tag(source) - if running_in_development? - options = { media: "all", host: "#{Webpacker.dev_server.host}:#{Webpacker.dev_server.port}" } - stylesheet_pack_tag(source, **options) - else - wicked_pdf_stylesheet_pack_tag(source) - end - end - def cache_with_locale(key = nil, options = {}, &block) cache(cache_key_with_locale(key, I18n.locale), options) do yield(block) diff --git a/app/views/spree/admin/orders/invoice.html.haml b/app/views/spree/admin/orders/invoice.html.haml index d1dbc32264..9f161fcbbf 100644 --- a/app/views/spree/admin/orders/invoice.html.haml +++ b/app/views/spree/admin/orders/invoice.html.haml @@ -1,5 +1,3 @@ -= pdf_stylesheet_pack_tag "mail" - %table{:width => "100%"} %tbody %tr{ valign: "top" } diff --git a/app/views/spree/admin/orders/invoice2.html.haml b/app/views/spree/admin/orders/invoice2.html.haml index c55a1f6637..5ae2b01a8d 100644 --- a/app/views/spree/admin/orders/invoice2.html.haml +++ b/app/views/spree/admin/orders/invoice2.html.haml @@ -1,5 +1,3 @@ -= pdf_stylesheet_pack_tag "mail" - %table{:width => "100%"} %tbody %tr{ valign: "top" } diff --git a/app/views/spree/admin/orders/invoice4.html.haml b/app/views/spree/admin/orders/invoice4.html.haml index bf7eee3679..38bacf8d48 100644 --- a/app/views/spree/admin/orders/invoice4.html.haml +++ b/app/views/spree/admin/orders/invoice4.html.haml @@ -1,5 +1,3 @@ -= pdf_stylesheet_pack_tag "mail" - %table{:width => "100%"} %tbody %tr{ valign: "top" }