/** * @param Link $link * @return \Magento\Framework\Pricing\Amount\AmountInterface */ public function getLinkAmount(Link $link) { return $this->calculator->getAmount($link->getPrice(), $link->getProduct()); }
/** * @param Link $link * @return \Magento\Framework\Pricing\Amount\AmountInterface */ public function getLinkAmount(Link $link) { $price = $link->getPrice(); $convertedPrice = $this->priceCurrency->convertAndRound($price); return $this->calculator->getAmount($convertedPrice, $link->getProduct()); }