Skip to content

Commit

Permalink
ENGCOM-3560: fixed Negative order amount in dashboard - #18754 #19372
Browse files Browse the repository at this point in the history
  • Loading branch information
sivaschenko authored Jan 25, 2019
2 parents 2b1c4bf + 2604035 commit a556e3c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
* Copyright © Magento, Inc. All rights reserved.
* See COPYING.txt for license details.
*/

namespace Magento\Reports\Model\ResourceModel\Order;

use Magento\Framework\DB\Select;
Expand Down Expand Up @@ -825,7 +824,7 @@ protected function getTotalsExpression(
) {
$template = ($storeId != 0)
? '(main_table.base_subtotal - %2$s - %1$s - ABS(main_table.base_discount_amount) - %3$s)'
: '((main_table.base_subtotal - %1$s - %2$s - ABS(main_table.base_discount_amount) - %3$s) '
: '((main_table.base_subtotal - %1$s - %2$s - ABS(main_table.base_discount_amount) + %3$s) '
. ' * main_table.base_to_global_rate)';
return sprintf($template, $baseSubtotalRefunded, $baseSubtotalCanceled, $baseDiscountCanceled);
}
Expand Down

0 comments on commit a556e3c

Please sign in to comment.