Skip to content

Commit be9c5e8

Browse files
slopukhovRoman Ganin
authored andcommitted
MAGETWO-35057: Columns 'Interval', 'Price Rule' have incorrect values in Coupon Usage report.
1 parent 8c7a61a commit be9c5e8

File tree

7 files changed

+10
-10
lines changed

7 files changed

+10
-10
lines changed

app/code/Magento/Reports/Model/Resource/Report/Product/Viewed.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ public function aggregate($from = null, $to = null)
110110
$subSelect = null;
111111
}
112112
$this->_clearTableByDateRange($mainTable, $from, $to, $subSelect);
113-
// convert dates from UTC to current admin timezone
113+
// convert dates to current admin timezone
114114
$periodExpr = $adapter->getDatePartSql(
115115
$this->getStoreTZOffsetQuery(
116116
['source_table' => $this->getTable('report_event')],

app/code/Magento/Sales/Model/Resource/Report/Bestsellers.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ public function aggregate($from = null, $to = null)
113113
}
114114

115115
$this->_clearTableByDateRange($this->getMainTable(), $from, $to, $subSelect);
116-
// convert dates from UTC to current admin timezone
116+
// convert dates to current admin timezone
117117
$periodExpr = $adapter->getDatePartSql(
118118
$this->getStoreTZOffsetQuery(
119119
['source_table' => $this->getTable('sales_order')],

app/code/Magento/Sales/Model/Resource/Report/Invoiced.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function _aggregateByInvoiceCreatedAt($from, $to)
7272
}
7373

7474
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
75-
// convert dates from UTC to current admin timezone
75+
// convert dates to current admin timezone
7676
$periodExpr = $adapter->getDatePartSql(
7777
$this->getStoreTZOffsetQuery(
7878
['source_table' => $sourceTable],
@@ -183,7 +183,7 @@ protected function _aggregateByOrderCreatedAt($from, $to)
183183
}
184184

185185
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
186-
// convert dates from UTC to current admin timezone
186+
// convert dates to current admin timezone
187187
$periodExpr = $adapter->getDatePartSql($this->getStoreTZOffsetQuery($sourceTable, 'created_at', $from, $to));
188188

189189
$columns = [

app/code/Magento/Sales/Model/Resource/Report/Refunded.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ protected function _aggregateByOrderCreatedAt($from, $to)
6161
}
6262

6363
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
64-
// convert dates from UTC to current admin timezone
64+
// convert dates to current admin timezone
6565
$periodExpr = $adapter->getDatePartSql(
6666
$this->getStoreTZOffsetQuery($sourceTable, 'created_at', $from, $to)
6767
);
@@ -158,7 +158,7 @@ protected function _aggregateByRefundCreatedAt($from, $to)
158158
}
159159

160160
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
161-
// convert dates from UTC to current admin timezone
161+
// convert dates to current admin timezone
162162
$periodExpr = $adapter->getDatePartSql(
163163
$this->getStoreTZOffsetQuery(
164164
['source_table' => $sourceTable],

app/code/Magento/Sales/Model/Resource/Report/Shipping.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ protected function _aggregateByOrderCreatedAt($from, $to)
6060
}
6161

6262
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
63-
// convert dates from UTC to current admin timezone
63+
// convert dates to current admin timezone
6464
$periodExpr = $adapter->getDatePartSql(
6565
$this->getStoreTZOffsetQuery($sourceTable, 'created_at', $from, $to)
6666
);
@@ -162,7 +162,7 @@ protected function _aggregateByShippingCreatedAt($from, $to)
162162
}
163163

164164
$this->_clearTableByDateRange($table, $from, $to, $subSelect);
165-
// convert dates from UTC to current admin timezone
165+
// convert dates to current admin timezone
166166
$periodExpr = $adapter->getDatePartSql(
167167
$this->getStoreTZOffsetQuery(
168168
['source_table' => $sourceTable],

app/code/Magento/SalesRule/Model/Resource/Report/Rule/Createdat.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ protected function _aggregateByOrder($aggregationField, $from, $to)
6464

6565
$this->_clearTableByDateRange($table, $from, $to, $subSelect, false, $salesAdapter);
6666

67-
// convert dates from UTC to current admin timezone
67+
// convert dates to current admin timezone
6868
$periodExpr = $adapter->getDatePartSql(
6969
$this->getStoreTZOffsetQuery($sourceTable, $aggregationField, $from, $to, null, $salesAdapter)
7070
);

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ protected function _aggregateByOrder($aggregationField, $from, $to)
6565
}
6666

6767
$this->_clearTableByDateRange($this->getMainTable(), $from, $to, $subSelect, false, $salesAdapter);
68-
// convert dates from UTC to current admin timezone
68+
// convert dates to current admin timezone
6969
$periodExpr = $writeAdapter->getDatePartSql(
7070
$this->getStoreTZOffsetQuery(
7171
['e' => $this->getTable('sales_order')],

0 commit comments

Comments
 (0)