File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
app/code/Magento/Sales/Model/Resource/Report/Invoiced/Collection Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -90,11 +90,17 @@ protected function _getSelectedColumns()
90
90
*/
91
91
protected function _initSelect ()
92
92
{
93
- $ this ->getSelect ()->from ($ this ->getResource ()->getMainTable (), $ this ->_getSelectedColumns ());
93
+ $ this ->getSelect ()->from ($ this ->getResource ()->getMainTable ());
94
+ return parent ::_initSelect ();
95
+ }
96
+
97
+ protected function _beforeLoad ()
98
+ {
99
+ $ this ->getSelect ()->columns ($ this ->_getSelectedColumns ());
94
100
if (!$ this ->isTotals ()) {
95
101
$ this ->getSelect ()->group ($ this ->_periodFormat );
96
102
$ this ->getSelect ()->having ('SUM(orders_count) > 0 ' );
97
103
}
98
- return parent ::_initSelect ();
104
+ return parent ::_beforeLoad ();
99
105
}
100
106
}
You can’t perform that action at this time.
0 commit comments