Skip to content

Commit a556e3c

Browse files
authored
ENGCOM-3560: fixed Negative order amount in dashboard - #18754 #19372
2 parents 2b1c4bf + 2604035 commit a556e3c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

app/code/Magento/Reports/Model/ResourceModel/Order/Collection.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
* Copyright © Magento, Inc. All rights reserved.
44
* See COPYING.txt for license details.
55
*/
6-
76
namespace Magento\Reports\Model\ResourceModel\Order;
87

98
use Magento\Framework\DB\Select;
@@ -825,7 +824,7 @@ protected function getTotalsExpression(
825824
) {
826825
$template = ($storeId != 0)
827826
? '(main_table.base_subtotal - %2$s - %1$s - ABS(main_table.base_discount_amount) - %3$s)'
828-
: '((main_table.base_subtotal - %1$s - %2$s - ABS(main_table.base_discount_amount) - %3$s) '
827+
: '((main_table.base_subtotal - %1$s - %2$s - ABS(main_table.base_discount_amount) + %3$s) '
829828
. ' * main_table.base_to_global_rate)';
830829
return sprintf($template, $baseSubtotalRefunded, $baseSubtotalCanceled, $baseDiscountCanceled);
831830
}

0 commit comments

Comments
 (0)