Default payment method when none in params

This commit is contained in:
Will Marshall
2014-03-14 16:40:26 +11:00
parent 758b705b64
commit 19cf6a5d2c

View File

@@ -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