Skip to content

Commit bd329b6

Browse files
committed
MC-40030: Wrong currency sign in Credit Memo grid with Website scope for Price
1 parent 1c3837c commit bd329b6

File tree

1 file changed

+4
-1
lines changed
  • app/code/Magento/Sales/Ui/Component/Listing/Column

1 file changed

+4
-1
lines changed

app/code/Magento/Sales/Ui/Component/Listing/Column/Price.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
use Magento\Framework\App\ObjectManager;
1111
use Magento\Framework\View\Element\UiComponent\ContextInterface;
1212
use Magento\Framework\View\Element\UiComponentFactory;
13+
use Magento\Store\Model\Store;
1314
use Magento\Store\Model\StoreManagerInterface;
1415
use Magento\Ui\Component\Listing\Columns\Column;
1516
use Magento\Framework\Pricing\PriceCurrencyInterface;
@@ -77,8 +78,10 @@ public function prepareDataSource(array $dataSource)
7778
foreach ($dataSource['data']['items'] as & $item) {
7879
$currencyCode = isset($item['base_currency_code']) ? $item['base_currency_code'] : null;
7980
if (!$currencyCode) {
81+
$storeId = isset($item['store_id']) && (int)$item['store_id'] !== 0 ? $item['store_id'] :
82+
$this->context->getFilterParam('store_id', Store::DEFAULT_STORE_ID);
8083
$store = $this->storeManager->getStore(
81-
$this->context->getFilterParam('store_id', \Magento\Store\Model\Store::DEFAULT_STORE_ID)
84+
$storeId
8285
);
8386
$currencyCode = $store->getBaseCurrency()->getCurrencyCode();
8487
}

0 commit comments

Comments
 (0)