12 use Magento\Sales\Model\Order\CreditMemo\Item as CreditMemoItem;
67 if (isset(
$data[
'zone'])) {
68 $this->zone =
$data[
'zone'];
70 parent::__construct($context,
$data);
82 $this->storeId =
$item->getStoreId();
133 switch ($this->zone) {
134 case PricingRender::ZONE_CART:
135 return $this->taxHelper->displayCartPriceInclTax($this->storeId);
136 case PricingRender::ZONE_EMAIL:
137 case PricingRender::ZONE_SALES:
138 return $this->taxHelper->displaySalesPriceInclTax($this->storeId);
140 return $this->taxHelper->displayCartPriceInclTax($this->storeId);
151 switch ($this->zone) {
152 case PricingRender::ZONE_CART:
153 return $this->taxHelper->displayCartPriceExclTax($this->storeId);
154 case PricingRender::ZONE_EMAIL:
155 case PricingRender::ZONE_SALES:
156 return $this->taxHelper->displaySalesPriceExclTax($this->storeId);
158 return $this->taxHelper->displayCartPriceExclTax($this->storeId);
169 switch ($this->zone) {
170 case PricingRender::ZONE_CART:
171 return $this->taxHelper->displayCartBothPrices($this->storeId);
172 case PricingRender::ZONE_EMAIL:
173 case PricingRender::ZONE_SALES:
174 return $this->taxHelper->displaySalesBothPrices($this->storeId);
176 return $this->taxHelper->displayCartBothPrices($this->storeId);
189 if (
$item instanceof QuoteItem) {
190 return $this->priceCurrency->format(
199 return $item->getOrderItem()->getOrder()->formatPrice(
$price);
212 if (
$item instanceof QuoteItem) {
213 return $item->getCalculationPrice();
215 return $item->getPrice();
228 -
$item->getDiscountAmount()
229 +
$item->getTaxAmount()
230 +
$item->getDiscountTaxCompensationAmount();
244 -
$item->getBaseDiscountAmount()
245 +
$item->getBaseTaxAmount()
246 +
$item->getBaseDiscountTaxCompensationAmount();
elseif(isset( $params[ 'redirect_parent']))
getBaseTotalAmount($item)
__construct(Context $context, TaxHelper $taxHelper, PriceCurrencyInterface $priceCurrency, array $data=[])
getItemDisplayPriceExclTax()