17 class Grid extends \Magento\Reports\Block\Adminhtml\Grid\AbstractGrid
44 return $this->getFilterData()->getData(
'report_type') ===
'updated_at_order' 45 ? \Magento\Sales\Model\ResourceModel\Report\Order\Updatedat\Collection::class
46 : \Magento\Sales\Model\ResourceModel\Report\Order\Collection::class;
59 'header' =>
__(
'Interval'),
62 'period_type' => $this->getPeriodType(),
63 'renderer' => \
Magento\Reports\Block\Adminhtml\
Sales\
Grid\Column\Renderer\Date::class,
64 'totals_label' =>
__(
'Total'),
65 'html_decorators' => [
'nobr'],
66 'header_css_class' =>
'col-period',
67 'column_css_class' =>
'col-period' 74 'header' =>
__(
'Orders'),
75 'index' =>
'orders_count',
79 'header_css_class' =>
'col-orders',
80 'column_css_class' =>
'col-orders' 87 'header' =>
__(
'Sales Items'),
88 'index' =>
'total_qty_ordered',
92 'header_css_class' =>
'col-sales-items',
93 'column_css_class' =>
'col-sales-items' 100 'header' =>
__(
'Items'),
101 'index' =>
'total_qty_invoiced',
105 'visibility_filter' => [
'show_actual_columns'],
106 'header_css_class' =>
'col-items',
107 'column_css_class' =>
'col-items' 116 'total_income_amount',
118 'header' =>
__(
'Sales Total'),
119 'type' =>
'currency',
120 'currency_code' => $currencyCode,
121 'index' =>
'total_income_amount',
124 'renderer' => Currency::class,
126 'header_css_class' =>
'col-sales-total',
127 'column_css_class' =>
'col-sales-total' 132 'total_revenue_amount',
134 'header' =>
__(
'Revenue'),
135 'type' =>
'currency',
136 'currency_code' => $currencyCode,
137 'index' =>
'total_revenue_amount',
140 'renderer' => Currency::class,
141 'visibility_filter' => [
'show_actual_columns'],
143 'header_css_class' =>
'col-revenue',
144 'column_css_class' =>
'col-revenue' 149 'total_profit_amount',
151 'header' =>
__(
'Profit'),
152 'type' =>
'currency',
153 'currency_code' => $currencyCode,
154 'index' =>
'total_profit_amount',
157 'renderer' => Currency::class,
158 'visibility_filter' => [
'show_actual_columns'],
160 'header_css_class' =>
'col-profit',
161 'column_css_class' =>
'col-profit' 166 'total_invoiced_amount',
168 'header' =>
__(
'Invoiced'),
169 'type' =>
'currency',
170 'currency_code' => $currencyCode,
171 'index' =>
'total_invoiced_amount',
174 'renderer' => Currency::class,
176 'header_css_class' =>
'col-invoiced',
177 'column_css_class' =>
'col-invoiced' 184 'header' =>
__(
'Paid'),
185 'type' =>
'currency',
186 'currency_code' => $currencyCode,
187 'index' =>
'total_paid_amount',
190 'renderer' => Currency::class,
191 'visibility_filter' => [
'show_actual_columns'],
193 'header_css_class' =>
'col-paid',
194 'column_css_class' =>
'col-paid' 199 'total_refunded_amount',
201 'header' =>
__(
'Refunded'),
202 'type' =>
'currency',
203 'currency_code' => $currencyCode,
204 'index' =>
'total_refunded_amount',
207 'renderer' => Currency::class,
209 'header_css_class' =>
'col-refunded',
210 'column_css_class' =>
'col-refunded' 217 'header' =>
__(
'Sales Tax'),
218 'type' =>
'currency',
219 'currency_code' => $currencyCode,
220 'index' =>
'total_tax_amount',
223 'renderer' => Currency::class,
225 'header_css_class' =>
'col-sales-tax',
226 'column_css_class' =>
'col-sales-tax' 231 'total_tax_amount_actual',
233 'header' =>
__(
'Tax'),
234 'type' =>
'currency',
235 'currency_code' => $currencyCode,
236 'index' =>
'total_tax_amount_actual',
239 'renderer' => Currency::class,
240 'visibility_filter' => [
'show_actual_columns'],
242 'header_css_class' =>
'col-tax',
243 'column_css_class' =>
'col-tax' 248 'total_shipping_amount',
250 'header' =>
__(
'Sales Shipping'),
251 'type' =>
'currency',
252 'currency_code' => $currencyCode,
253 'index' =>
'total_shipping_amount',
256 'renderer' => Currency::class,
258 'header_css_class' =>
'col-sales-shipping',
259 'column_css_class' =>
'col-sales-shipping' 264 'total_shipping_amount_actual',
266 'header' =>
__(
'Shipping'),
267 'type' =>
'currency',
268 'currency_code' => $currencyCode,
269 'index' =>
'total_shipping_amount_actual',
272 'renderer' => Currency::class,
273 'visibility_filter' => [
'show_actual_columns'],
275 'header_css_class' =>
'col-shipping',
276 'column_css_class' =>
'col-shipping' 281 'total_discount_amount',
283 'header' =>
__(
'Sales Discount'),
284 'type' =>
'currency',
285 'currency_code' => $currencyCode,
286 'index' =>
'total_discount_amount',
289 'renderer' => Currency::class,
291 'header_css_class' =>
'col-sales-discount',
292 'column_css_class' =>
'col-sales-discount' 297 'total_discount_amount_actual',
299 'header' =>
__(
'Discount'),
300 'type' =>
'currency',
301 'currency_code' => $currencyCode,
302 'index' =>
'total_discount_amount_actual',
305 'renderer' => Currency::class,
306 'visibility_filter' => [
'show_actual_columns'],
308 'header_css_class' =>
'col-discount',
309 'column_css_class' =>
'col-discount' 314 'total_canceled_amount',
316 'header' =>
__(
'Canceled'),
317 'type' =>
'currency',
318 'currency_code' => $currencyCode,
319 'index' =>
'total_canceled_amount',
322 'renderer' => Currency::class,
324 'header_css_class' =>
'col-canceled',
325 'column_css_class' =>
'col-canceled' 332 return parent::_prepareColumns();
addColumn($columnId, $column)
getResourceCollectionName()