Skip to content

Commit 8e36968

Browse files
committed
MAGETWO-91521: Reports / Sales / Tax report show incorrect amount
- Fixed to correct db field to retrieve tax amount - Removed incorrect calculating order subtotals and totals count in Tax report
1 parent e8fda7c commit 8e36968

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

app/code/Magento/Reports/Block/Adminhtml/Sales/Tax/Grid.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ protected function _prepareColumns()
123123
[
124124
'header' => __('Orders'),
125125
'index' => 'orders_count',
126-
'total' => 'sum',
127126
'type' => 'number',
128127
'sortable' => false,
129128
'header_css_class' => 'col-qty',

app/code/Magento/Tax/Model/ResourceModel/Report/Tax/Createdat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ protected function _aggregateByOrder($aggregationField, $from, $to)
8484
'order_status' => 'e.status',
8585
'percent' => 'MAX(tax.' . $connection->quoteIdentifier('percent') . ')',
8686
'orders_count' => 'COUNT(DISTINCT e.entity_id)',
87-
'tax_base_amount_sum' => 'SUM(tax.base_amount * e.base_to_global_rate)',
87+
'tax_base_amount_sum' => 'SUM(tax.base_real_amount * e.base_to_global_rate)',
8888
];
8989

9090
$select = $connection->select()->from(

0 commit comments

Comments
 (0)