Skip to content

Commit 402ab7b

Browse files
committed
ACP2E-3276: Order reports showing the wrong currency symbol
1 parent 066aebc commit 402ab7b

File tree

1 file changed

+7
-19
lines changed

1 file changed

+7
-19
lines changed

app/code/Magento/Directory/Test/Fixture/CurrencyRate.php

Lines changed: 7 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,7 @@
11
<?php
2-
/************************************************************************
3-
*
2+
/**
43
* Copyright 2024 Adobe
54
* All Rights Reserved.
6-
*
7-
* NOTICE: All information contained herein is, and remains
8-
* the property of Adobe and its suppliers, if any. The intellectual
9-
* and technical concepts contained herein are proprietary to Adobe
10-
* and its suppliers and are protected by all applicable intellectual
11-
* property laws, including trade secret and copyright laws.
12-
* Dissemination of this information or reproduction of this material
13-
* is strictly forbidden unless prior written permission is obtained
14-
* from Adobe.
15-
* ************************************************************************
165
*/
176
declare(strict_types=1);
187

@@ -56,15 +45,14 @@ public function __construct(
5645

5746
public function apply(array $data = []): ?DataObject
5847
{
59-
if (is_array($data)) {
60-
foreach ($data as $currencyCode => $rate) {
61-
foreach ($rate as $currencyTo => $value) {
62-
$value = abs((float) $this->format->getNumber($value));
63-
$data[$currencyCode][$currencyTo] = $value;
64-
}
48+
foreach ($data as $currencyCode => $rate) {
49+
foreach ($rate as $currencyTo => $value) {
50+
$value = abs((float) $this->format->getNumber($value));
51+
$data[$currencyCode][$currencyTo] = $value;
6552
}
66-
return $this->currency->saveRates($data);
6753
}
54+
55+
return $this->currency->saveRates($data);
6856
}
6957

7058
public function revert(DataObject $data): void

0 commit comments

Comments
 (0)