7
7
namespace Magento \Reports \Block \Adminhtml \Sales \Sales ;
8
8
9
9
use Magento \Framework \DataObject ;
10
+ use Magento \Reports \Block \Adminhtml \Grid \Column \Renderer \Currency ;
10
11
use Magento \Framework \App \ObjectManager ;
11
12
use Magento \Sales \Model \Order \ConfigFactory ;
12
13
use Magento \Sales \Model \Order ;
@@ -155,6 +156,7 @@ protected function _prepareColumns()
155
156
'index ' => 'total_income_amount ' ,
156
157
'total ' => 'sum ' ,
157
158
'sortable ' => false ,
159
+ 'renderer ' => Currency::class,
158
160
'rate ' => $ rate ,
159
161
'header_css_class ' => 'col-sales-total ' ,
160
162
'column_css_class ' => 'col-sales-total '
@@ -170,6 +172,7 @@ protected function _prepareColumns()
170
172
'index ' => 'total_revenue_amount ' ,
171
173
'total ' => 'sum ' ,
172
174
'sortable ' => false ,
175
+ 'renderer ' => Currency::class,
173
176
'visibility_filter ' => ['show_actual_columns ' ],
174
177
'rate ' => $ rate ,
175
178
'header_css_class ' => 'col-revenue ' ,
@@ -186,6 +189,7 @@ protected function _prepareColumns()
186
189
'index ' => 'total_profit_amount ' ,
187
190
'total ' => 'sum ' ,
188
191
'sortable ' => false ,
192
+ 'renderer ' => Currency::class,
189
193
'visibility_filter ' => ['show_actual_columns ' ],
190
194
'rate ' => $ rate ,
191
195
'header_css_class ' => 'col-profit ' ,
@@ -202,6 +206,7 @@ protected function _prepareColumns()
202
206
'index ' => 'total_invoiced_amount ' ,
203
207
'total ' => 'sum ' ,
204
208
'sortable ' => false ,
209
+ 'renderer ' => Currency::class,
205
210
'rate ' => $ rate ,
206
211
'header_css_class ' => 'col-invoiced ' ,
207
212
'column_css_class ' => 'col-invoiced '
@@ -217,6 +222,7 @@ protected function _prepareColumns()
217
222
'index ' => 'total_paid_amount ' ,
218
223
'total ' => 'sum ' ,
219
224
'sortable ' => false ,
225
+ 'renderer ' => Currency::class,
220
226
'visibility_filter ' => ['show_actual_columns ' ],
221
227
'rate ' => $ rate ,
222
228
'header_css_class ' => 'col-paid ' ,
@@ -233,6 +239,7 @@ protected function _prepareColumns()
233
239
'index ' => 'total_refunded_amount ' ,
234
240
'total ' => 'sum ' ,
235
241
'sortable ' => false ,
242
+ 'renderer ' => Currency::class,
236
243
'rate ' => $ rate ,
237
244
'header_css_class ' => 'col-refunded ' ,
238
245
'column_css_class ' => 'col-refunded '
@@ -248,6 +255,7 @@ protected function _prepareColumns()
248
255
'index ' => 'total_tax_amount ' ,
249
256
'total ' => 'sum ' ,
250
257
'sortable ' => false ,
258
+ 'renderer ' => Currency::class,
251
259
'rate ' => $ rate ,
252
260
'header_css_class ' => 'col-sales-tax ' ,
253
261
'column_css_class ' => 'col-sales-tax '
@@ -263,6 +271,7 @@ protected function _prepareColumns()
263
271
'index ' => 'total_tax_amount_actual ' ,
264
272
'total ' => 'sum ' ,
265
273
'sortable ' => false ,
274
+ 'renderer ' => Currency::class,
266
275
'visibility_filter ' => ['show_actual_columns ' ],
267
276
'rate ' => $ rate ,
268
277
'header_css_class ' => 'col-tax ' ,
@@ -279,6 +288,7 @@ protected function _prepareColumns()
279
288
'index ' => 'total_shipping_amount ' ,
280
289
'total ' => 'sum ' ,
281
290
'sortable ' => false ,
291
+ 'renderer ' => Currency::class,
282
292
'rate ' => $ rate ,
283
293
'header_css_class ' => 'col-sales-shipping ' ,
284
294
'column_css_class ' => 'col-sales-shipping '
@@ -294,6 +304,7 @@ protected function _prepareColumns()
294
304
'index ' => 'total_shipping_amount_actual ' ,
295
305
'total ' => 'sum ' ,
296
306
'sortable ' => false ,
307
+ 'renderer ' => Currency::class,
297
308
'visibility_filter ' => ['show_actual_columns ' ],
298
309
'rate ' => $ rate ,
299
310
'header_css_class ' => 'col-shipping ' ,
@@ -310,6 +321,7 @@ protected function _prepareColumns()
310
321
'index ' => 'total_discount_amount ' ,
311
322
'total ' => 'sum ' ,
312
323
'sortable ' => false ,
324
+ 'renderer ' => Currency::class,
313
325
'rate ' => $ rate ,
314
326
'header_css_class ' => 'col-sales-discount ' ,
315
327
'column_css_class ' => 'col-sales-discount '
@@ -325,6 +337,7 @@ protected function _prepareColumns()
325
337
'index ' => 'total_discount_amount_actual ' ,
326
338
'total ' => 'sum ' ,
327
339
'sortable ' => false ,
340
+ 'renderer ' => Currency::class,
328
341
'visibility_filter ' => ['show_actual_columns ' ],
329
342
'rate ' => $ rate ,
330
343
'header_css_class ' => 'col-discount ' ,
@@ -341,6 +354,7 @@ protected function _prepareColumns()
341
354
'index ' => 'total_canceled_amount ' ,
342
355
'total ' => 'sum ' ,
343
356
'sortable ' => false ,
357
+ 'renderer ' => Currency::class,
344
358
'rate ' => $ rate ,
345
359
'header_css_class ' => 'col-canceled ' ,
346
360
'column_css_class ' => 'col-canceled '
0 commit comments