From d28545a7b2819f5d15a9c95c32b21858fa19aa8d Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Bellet Date: Tue, 17 May 2022 12:10:41 +0200 Subject: [PATCH] Display both phone number and email to the alternative invoice --- app/views/spree/admin/orders/invoice2.html.haml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/app/views/spree/admin/orders/invoice2.html.haml b/app/views/spree/admin/orders/invoice2.html.haml index 2f1b152cdf..689909d856 100644 --- a/app/views/spree/admin/orders/invoice2.html.haml +++ b/app/views/spree/admin/orders/invoice2.html.haml @@ -66,6 +66,12 @@ %br - if @order.bill_address = @order.bill_address.address_part2 + - if @order.bill_address.phone.present? + %br + = @order.bill_address.phone + - if @order&.customer&.email.present? + %br + = @order.customer.email = render 'spree/admin/orders/invoice_table2'