Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit c4f9a02

Browse files
author
niravkrish
committed
fixed Negative order amount in dashboard - #18754
1 parent 708017a commit c4f9a02

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)