From 2e0851c02f50f5bab2e7391921e306482ef41580 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Thu, 9 Jun 2022 14:15:41 +0200 Subject: [PATCH] Use the method `logo_url` --- app/views/spree/admin/orders/invoice2.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/spree/admin/orders/invoice2.html.haml b/app/views/spree/admin/orders/invoice2.html.haml index be43fb767c..b59992b084 100644 --- a/app/views/spree/admin/orders/invoice2.html.haml +++ b/app/views/spree/admin/orders/invoice2.html.haml @@ -8,7 +8,7 @@ = t :tax_invoice - if @order.distributor.display_invoice_logo? && @order.distributor.logo.variable? %td{ :align => "right", rowspan: 2 } - = wicked_pdf_image_tag @order.distributor.logo.variant(resize_to_limit: [150, 150]) + = wicked_pdf_image_tag @order.distributor.logo_url(:small) %tr{ valign: "top" } %td{ :align => "left" } - if @order.distributor.business_address.blank?