mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-27 06:05:19 +00:00
Merge pull request #5561 from coopdevs/defend-from-invoice-without-bill-address
Do not print the bill addr. name when there's none
This commit is contained in:
@@ -33,16 +33,19 @@
|
||||
%td{ align: "left" }
|
||||
%strong= "#{t('.to')}:"
|
||||
%br
|
||||
= @order.bill_address.full_name
|
||||
- if @order.bill_address
|
||||
= @order.bill_address.full_name
|
||||
- if @order.andand.customer.andand.code.present?
|
||||
%br
|
||||
= "#{t('.code')}: #{@order.customer.code}"
|
||||
%br
|
||||
= @order.bill_address.full_address
|
||||
- if @order.bill_address
|
||||
= @order.bill_address.full_address
|
||||
%br
|
||||
- if @order.andand.customer.andand.email.present?
|
||||
= "#{@order.customer.email},"
|
||||
= "#{@order.bill_address.phone}"
|
||||
- if @order.bill_address
|
||||
= "#{@order.bill_address.phone}"
|
||||
%td
|
||||
|
||||
%td{ align: "left", style: "border-left: .1em solid black; padding-left: 1em" }
|
||||
|
||||
@@ -44,14 +44,17 @@
|
||||
%td{ :align => "right" }
|
||||
= t :invoice_billing_address
|
||||
%br
|
||||
%strong= @order.bill_address.full_name
|
||||
- if @order.bill_address
|
||||
%strong= @order.bill_address.full_name
|
||||
- if @order.andand.customer.andand.code.present?
|
||||
%br
|
||||
= "Code: #{@order.customer.code}"
|
||||
%br
|
||||
= @order.bill_address.address_part1
|
||||
- if @order.bill_address
|
||||
= @order.bill_address.address_part1
|
||||
%br
|
||||
= @order.bill_address.address_part2
|
||||
- if @order.bill_address
|
||||
= @order.bill_address.address_part2
|
||||
|
||||
= render 'spree/admin/orders/invoice_table2'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user