Skip to content

Commit f507704

Browse files
committed
ACP2E-3276: Order reports showing the wrong currency symbol
1 parent 9bb9407 commit f507704

File tree

1 file changed

+14
-0
lines changed
  • app/code/Magento/Reports/Block/Adminhtml/Sales/Sales

1 file changed

+14
-0
lines changed

app/code/Magento/Reports/Block/Adminhtml/Sales/Sales/Grid.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Reports\Block\Adminhtml\Sales\Sales;
88

99
use Magento\Framework\DataObject;
10+
use Magento\Reports\Block\Adminhtml\Grid\Column\Renderer\Currency;
1011
use Magento\Framework\App\ObjectManager;
1112
use Magento\Sales\Model\Order\ConfigFactory;
1213
use Magento\Sales\Model\Order;
@@ -155,6 +156,7 @@ protected function _prepareColumns()
155156
'index' => 'total_income_amount',
156157
'total' => 'sum',
157158
'sortable' => false,
159+
'renderer' => Currency::class,
158160
'rate' => $rate,
159161
'header_css_class' => 'col-sales-total',
160162
'column_css_class' => 'col-sales-total'
@@ -170,6 +172,7 @@ protected function _prepareColumns()
170172
'index' => 'total_revenue_amount',
171173
'total' => 'sum',
172174
'sortable' => false,
175+
'renderer' => Currency::class,
173176
'visibility_filter' => ['show_actual_columns'],
174177
'rate' => $rate,
175178
'header_css_class' => 'col-revenue',
@@ -186,6 +189,7 @@ protected function _prepareColumns()
186189
'index' => 'total_profit_amount',
187190
'total' => 'sum',
188191
'sortable' => false,
192+
'renderer' => Currency::class,
189193
'visibility_filter' => ['show_actual_columns'],
190194
'rate' => $rate,
191195
'header_css_class' => 'col-profit',
@@ -202,6 +206,7 @@ protected function _prepareColumns()
202206
'index' => 'total_invoiced_amount',
203207
'total' => 'sum',
204208
'sortable' => false,
209+
'renderer' => Currency::class,
205210
'rate' => $rate,
206211
'header_css_class' => 'col-invoiced',
207212
'column_css_class' => 'col-invoiced'
@@ -217,6 +222,7 @@ protected function _prepareColumns()
217222
'index' => 'total_paid_amount',
218223
'total' => 'sum',
219224
'sortable' => false,
225+
'renderer' => Currency::class,
220226
'visibility_filter' => ['show_actual_columns'],
221227
'rate' => $rate,
222228
'header_css_class' => 'col-paid',
@@ -233,6 +239,7 @@ protected function _prepareColumns()
233239
'index' => 'total_refunded_amount',
234240
'total' => 'sum',
235241
'sortable' => false,
242+
'renderer' => Currency::class,
236243
'rate' => $rate,
237244
'header_css_class' => 'col-refunded',
238245
'column_css_class' => 'col-refunded'
@@ -248,6 +255,7 @@ protected function _prepareColumns()
248255
'index' => 'total_tax_amount',
249256
'total' => 'sum',
250257
'sortable' => false,
258+
'renderer' => Currency::class,
251259
'rate' => $rate,
252260
'header_css_class' => 'col-sales-tax',
253261
'column_css_class' => 'col-sales-tax'
@@ -263,6 +271,7 @@ protected function _prepareColumns()
263271
'index' => 'total_tax_amount_actual',
264272
'total' => 'sum',
265273
'sortable' => false,
274+
'renderer' => Currency::class,
266275
'visibility_filter' => ['show_actual_columns'],
267276
'rate' => $rate,
268277
'header_css_class' => 'col-tax',
@@ -279,6 +288,7 @@ protected function _prepareColumns()
279288
'index' => 'total_shipping_amount',
280289
'total' => 'sum',
281290
'sortable' => false,
291+
'renderer' => Currency::class,
282292
'rate' => $rate,
283293
'header_css_class' => 'col-sales-shipping',
284294
'column_css_class' => 'col-sales-shipping'
@@ -294,6 +304,7 @@ protected function _prepareColumns()
294304
'index' => 'total_shipping_amount_actual',
295305
'total' => 'sum',
296306
'sortable' => false,
307+
'renderer' => Currency::class,
297308
'visibility_filter' => ['show_actual_columns'],
298309
'rate' => $rate,
299310
'header_css_class' => 'col-shipping',
@@ -310,6 +321,7 @@ protected function _prepareColumns()
310321
'index' => 'total_discount_amount',
311322
'total' => 'sum',
312323
'sortable' => false,
324+
'renderer' => Currency::class,
313325
'rate' => $rate,
314326
'header_css_class' => 'col-sales-discount',
315327
'column_css_class' => 'col-sales-discount'
@@ -325,6 +337,7 @@ protected function _prepareColumns()
325337
'index' => 'total_discount_amount_actual',
326338
'total' => 'sum',
327339
'sortable' => false,
340+
'renderer' => Currency::class,
328341
'visibility_filter' => ['show_actual_columns'],
329342
'rate' => $rate,
330343
'header_css_class' => 'col-discount',
@@ -341,6 +354,7 @@ protected function _prepareColumns()
341354
'index' => 'total_canceled_amount',
342355
'total' => 'sum',
343356
'sortable' => false,
357+
'renderer' => Currency::class,
344358
'rate' => $rate,
345359
'header_css_class' => 'col-canceled',
346360
'column_css_class' => 'col-canceled'

0 commit comments

Comments
 (0)