File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed
app/code/Magento/Sales/Ui/Component/Listing/Column Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 1010use Magento \Framework \App \ObjectManager ;
1111use Magento \Framework \View \Element \UiComponent \ContextInterface ;
1212use Magento \Framework \View \Element \UiComponentFactory ;
13+ use Magento \Store \Model \Store ;
1314use Magento \Store \Model \StoreManagerInterface ;
1415use Magento \Ui \Component \Listing \Columns \Column ;
1516use 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 }
You can’t perform that action at this time.
0 commit comments