Show order total in Delivery/Payment Method reports instead of first payment

This commit is contained in:
Nihal
2021-09-09 16:32:45 +05:30
parent 9affc6a945
commit 43e6d1b933
2 changed files with 4 additions and 4 deletions

View File

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

View File

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