Skip to content

Commit 7b983b5

Browse files
ENGCOM-3560: fixed Negative order amount in dashboard - #18754 #19372
- Merge Pull Request #19372 from niravkrish/magento2:patch-18754 - Merged commits: 1. c4f9a02
2 parents 7755eef + c4f9a02 commit 7b983b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -825,7 +825,7 @@ protected function getTotalsExpression(
825825
) {
826826
$template = ($storeId != 0)
827827
? '(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) '
828+
: '((main_table.base_subtotal - %1$s - %2$s - ABS(main_table.base_discount_amount) + %3$s) '
829829
. ' * main_table.base_to_global_rate)';
830830
return sprintf($template, $baseSubtotalRefunded, $baseSubtotalCanceled, $baseDiscountCanceled);
831831
}

0 commit comments

Comments
 (0)