File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
Components/Ui/Component/Listing/Column Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change 2
2
3
3
namespace Aitoc \Core \Components \Ui \Component \Listing \Column ;
4
4
5
+ use Magento \Framework \Pricing \PriceCurrencyInterface ;
5
6
use Magento \Framework \View \Element \UiComponent \ContextInterface ;
6
7
use Magento \Framework \View \Element \UiComponentFactory ;
7
- use Magento \Ui \Component \Listing \Columns \Column ;
8
- use Magento \Framework \Pricing \PriceCurrencyInterface ;
9
8
use Magento \Store \Model \StoreManagerInterface ;
9
+ use Magento \Ui \Component \Listing \Columns \Column ;
10
10
11
11
class Price extends Column
12
12
{
@@ -37,7 +37,9 @@ public function __construct(
37
37
* Prepare Data Source
38
38
*
39
39
* @param array $dataSource
40
+ *
40
41
* @return array
42
+ * @throws \Magento\Framework\Exception\NoSuchEntityException
41
43
*/
42
44
public function prepareDataSource (array $ dataSource )
43
45
{
@@ -48,7 +50,7 @@ public function prepareDataSource(array $dataSource)
48
50
$ item [$ this ->getData ('name ' )] = $ this ->priceFormatter ->format (
49
51
$ item [$ this ->getData ('name ' )],
50
52
false ,
51
- null ,
53
+ \ Magento \ Framework \ Pricing \PriceCurrencyInterface:: DEFAULT_PRECISION ,
52
54
null ,
53
55
$ currencyCode
54
56
);
You can’t perform that action at this time.
0 commit comments