Merge pull request #9286 from jibees/9281-invoice-print-failed-when-enterprise-having-a-logo

Admin, print an invoice with alternative mode: fix an issue when enterprise has a logo
This commit is contained in:
Rachel Arnould
2022-06-10 10:00:40 +02:00
committed by GitHub

View File

@@ -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?