mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-27 01:43:22 +00:00
Show order total in Delivery/Payment Method reports instead of first payment
This commit is contained in:
@@ -95,7 +95,7 @@ module OpenFoodNetwork
|
||||
ba&.phone,
|
||||
order.shipping_method&.name,
|
||||
order.payments.first&.payment_method&.name,
|
||||
order.payments.first&.amount,
|
||||
order.total,
|
||||
balance(order)]
|
||||
end
|
||||
|
||||
@@ -110,7 +110,7 @@ module OpenFoodNetwork
|
||||
sa.phone,
|
||||
order.shipping_method&.name,
|
||||
order.payments.first&.payment_method&.name,
|
||||
order.payments.first&.amount,
|
||||
order.total,
|
||||
balance(order),
|
||||
has_temperature_controlled_items?(order),
|
||||
order.special_instructions]
|
||||
|
||||
@@ -173,7 +173,7 @@ module OpenFoodNetwork
|
||||
order.billing_address.phone,
|
||||
order.shipment.shipping_method.name,
|
||||
nil,
|
||||
nil,
|
||||
order.total,
|
||||
-order.total
|
||||
]])
|
||||
end
|
||||
@@ -200,7 +200,7 @@ module OpenFoodNetwork
|
||||
order.ship_address.phone,
|
||||
order.shipment.shipping_method.name,
|
||||
nil,
|
||||
nil,
|
||||
order.total,
|
||||
-order.total,
|
||||
false,
|
||||
order.special_instructions
|
||||
|
||||
Reference in New Issue
Block a user