mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-01 21:47:16 +00:00
Defend from order without billing address
This a data integrity issue that needs deeper investigation but while this happens, our users can still render their reports.
This commit is contained in:
@@ -69,12 +69,12 @@ module OpenFoodNetwork
|
||||
|
||||
def payment_method_row(order)
|
||||
ba = order.billing_address
|
||||
[ba.firstname,
|
||||
ba.lastname,
|
||||
[ba.andand.firstname,
|
||||
ba.andand.lastname,
|
||||
order.distributor.andand.name,
|
||||
customer_code(order.email),
|
||||
order.email,
|
||||
ba.phone,
|
||||
ba.andand.phone,
|
||||
order.shipping_method.andand.name,
|
||||
order.payments.first.andand.payment_method.andand.name,
|
||||
order.payments.first.andand.amount,
|
||||
|
||||
Reference in New Issue
Block a user