Fix customer missing from some order records - guest checkout?

This commit is contained in:
Matt-Yorkley
2018-10-15 18:10:00 +01:00
parent 24207053e4
commit f3585befff
2 changed files with 4 additions and 3 deletions

View File

@@ -30,13 +30,14 @@
 
%td{ :align => "right" }
%strong= "#{t('.to')}: #{@order.ship_address.full_name}"
- if @order.customer.code.present?
- if @order.andand.customer.andand.code.present?
%br
= "#{t('.code')}: #{@order.customer.code}"
%br
= @order.ship_address.full_address
%br
= "#{@order.customer.email},"
- if @order.andand.customer.andand.email.present?
= "#{@order.customer.email},"
= "#{@order.bill_address.phone}"
= render 'spree/admin/orders/invoice_table'

View File

@@ -45,7 +45,7 @@
= t :invoice_billing_address
%br
%strong= @order.ship_address.full_name
- if @order.customer.code.present?
- if @order.andand.customer.andand.code.present?
%br
= "Code: #{@order.customer.code}"
%br