37 \
Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
38 \
Magento\Reports\Model\FlagFactory $reportsFlagFactory
40 parent::__construct($entityFactory);
41 $this->_localeDate = $localeDate;
42 $this->_reportsFlagFactory = $reportsFlagFactory;
53 $flag = $this->_reportsFlagFactory->create()->setReportFlagCode($reportCode)->loadSelf();
54 return $flag->hasData() ? $flag->getLastUpdate() :
'';
65 public function loadData($printQuery =
false, $logQuery =
false)
67 if (!
count($this->_items)) {
71 'report' =>
__(
'Orders'),
72 'comment' =>
__(
'Total Ordered Report'),
77 'report' =>
__(
'Tax'),
78 'comment' =>
__(
'Order Taxes Report Grouped by Tax Rates'),
83 'report' =>
__(
'Shipping'),
84 'comment' =>
__(
'Total Shipped Report'),
89 'report' =>
__(
'Total Invoiced'),
90 'comment' =>
__(
'Total Invoiced VS Paid Report'),
95 'report' =>
__(
'Total Refunded'),
96 'comment' =>
__(
'Total Refunded Report'),
101 'report' =>
__(
'Coupons'),
102 'comment' =>
__(
'Promotion Coupons Usage Report'),
106 'id' =>
'bestsellers',
107 'report' =>
__(
'Bestsellers'),
108 'comment' =>
__(
'Products Bestsellers Report'),
113 'report' =>
__(
'Most Viewed'),
114 'comment' =>
__(
'Most Viewed Products Report'),
119 $item = new \Magento\Framework\DataObject();
_getUpdatedAt($reportCode)
const REPORT_TAX_FLAG_CODE
const REPORT_PRODUCT_VIEWED_FLAG_CODE
const REPORT_BESTSELLERS_FLAG_CODE
const REPORT_ORDER_FLAG_CODE
const REPORT_INVOICE_FLAG_CODE
const REPORT_COUPONS_FLAG_CODE
const REPORT_REFUNDED_FLAG_CODE
__construct(\Magento\Framework\Data\Collection\EntityFactory $entityFactory, \Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate, \Magento\Reports\Model\FlagFactory $reportsFlagFactory)
loadData($printQuery=false, $logQuery=false)
const REPORT_SHIPPING_FLAG_CODE
addItem(\Magento\Framework\DataObject $item)