mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Default payment method when none in params
This commit is contained in:
@@ -6,7 +6,7 @@ node :display_total do
|
||||
end
|
||||
|
||||
node :payment_method_id do
|
||||
current_order.payments.first.andand.payment_method_id
|
||||
current_order.payments.first.andand.payment_method_id || current_order.distributor.payment_methods.first.andand.id
|
||||
end
|
||||
|
||||
child current_order.bill_address => :bill_address do
|
||||
|
||||
Reference in New Issue
Block a user