Skip to content

Commit 732ef67

Browse files
committed
ACP2E-1541: There is a problem with the magento report order screen
1 parent 1c874bd commit 732ef67

File tree

1 file changed

+3
-3
lines changed
  • app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer

1 file changed

+3
-3
lines changed

app/code/Magento/Reports/Block/Adminhtml/Grid/Column/Renderer/Currency.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,10 +138,10 @@ private function getStoreCurrencyRate(string $currencyCode, DataObject $row): fl
138138
$catalogPriceScope = $this->getCatalogPriceScope();
139139
$adminCurrencyCode = $this->getAdminCurrencyCode();
140140

141-
if (($catalogPriceScope != 0
141+
if (((int)$catalogPriceScope !== 0
142142
&& $adminCurrencyCode !== $currencyCode)) {
143-
$storeCurrency = $this->currencyFactory->create()->load($adminCurrencyCode);
144-
$currencyRate = $storeCurrency->getRate($currencyCode);
143+
$storeCurrency = $this->currencyFactory->create()->load($currencyCode);
144+
$currencyRate = $storeCurrency->getRate($adminCurrencyCode);
145145
} else {
146146
$currencyRate = $this->_getRate($row);
147147
}

0 commit comments

Comments
 (0)