Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
Data.php
Go to the documentation of this file.
1 <?php
7 
8 use Magento\Sales\Model\Order\Item as OrderItem;
9 use Magento\Quote\Model\Quote\Item\AbstractItem as QuoteAbstractItem;
12 use Magento\Weee\Model\Tax as WeeeDisplayConfig;
13 
23 {
27  const KEY_WEEE_AMOUNT_INVOICED = 'weee_amount_invoiced';
28 
29  const KEY_BASE_WEEE_AMOUNT_INVOICED = 'base_weee_amount_invoiced';
30 
31  const KEY_WEEE_TAX_AMOUNT_INVOICED = 'weee_tax_amount_invoiced';
32 
33  const KEY_BASE_WEEE_TAX_AMOUNT_INVOICED = 'base_weee_tax_amount_invoiced';
34 
35  const KEY_WEEE_AMOUNT_REFUNDED = 'weee_amount_refunded';
36 
37  const KEY_BASE_WEEE_AMOUNT_REFUNDED = 'base_weee_amount_refunded';
38 
39  const KEY_WEEE_TAX_AMOUNT_REFUNDED = 'weee_tax_amount_refunded';
40 
41  const KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED = 'base_weee_tax_amount_refunded';
42 
46  protected $_storeDisplayConfig = [];
47 
53  protected $_coreRegistry;
54 
60  protected $_taxData;
61 
65  protected $_weeeTax;
66 
70  protected $_weeeConfig;
71 
75  protected $_storeManager;
76 
80  protected $cacheProductWeeeAmount = '_cache_product_weee_amount';
81 
85  private $serializer;
86 
99  public function __construct(
100  \Magento\Framework\App\Helper\Context $context,
101  \Magento\Store\Model\StoreManagerInterface $storeManager,
102  \Magento\Weee\Model\Tax $weeeTax,
103  \Magento\Weee\Model\Config $weeeConfig,
104  \Magento\Tax\Helper\Data $taxData,
105  \Magento\Framework\Registry $coreRegistry,
106  \Magento\Framework\Serialize\Serializer\Json $serializer = null
107  ) {
108  $this->_storeManager = $storeManager;
109  $this->_weeeTax = $weeeTax;
110  $this->_coreRegistry = $coreRegistry;
111  $this->_taxData = $taxData;
112  $this->_weeeConfig = $weeeConfig;
113  $this->serializer = $serializer ?: \Magento\Framework\App\ObjectManager::getInstance()
114  ->get(\Magento\Framework\Serialize\Serializer\Json::class);
115  parent::__construct($context);
116  }
117 
124  public function getPriceDisplayType($store = null)
125  {
126  return $this->_weeeConfig->getPriceDisplayType($store);
127  }
128 
135  public function getListPriceDisplayType($store = null)
136  {
137  return $this->_weeeConfig->getListPriceDisplayType($store);
138  }
139 
146  public function getSalesPriceDisplayType($store = null)
147  {
148  return $this->_weeeConfig->getSalesPriceDisplayType($store);
149  }
150 
157  public function getEmailPriceDisplayType($store = null)
158  {
159  return $this->_weeeConfig->getEmailPriceDisplayType($store);
160  }
161 
168  public function isTaxable($store = null)
169  {
170  return $this->_weeeConfig->isTaxable($store);
171  }
172 
179  public function includeInSubtotal($store = null)
180  {
181  return $this->_weeeConfig->includeInSubtotal($store);
182  }
183 
190  public function isEnabled($store = null)
191  {
192  return $this->_weeeConfig->isEnabled($store);
193  }
194 
201  public function displayTotalsInclTax($store = null)
202  {
203  // If catalog prices include tax, then display FPT totals with tax included
204  return $this->_taxData->priceIncludesTax($store);
205  }
206 
214  public function getAmountExclTax($product, $website = null)
215  {
216  if (!$product->hasData($this->cacheProductWeeeAmount)) {
218  if ($website) {
219  $store = $this->_storeManager->getWebsite($website)->getDefaultGroup()->getDefaultStore();
220  } else {
221  $store = $product->getStore();
222  }
223 
224  $amount = 0;
225  if ($this->isEnabled($store)) {
226  $amount = $this->_weeeTax->getWeeeAmountExclTax($product, null, null, $website);
227  }
228 
229  $product->setData($this->cacheProductWeeeAmount, $amount);
230  }
231  return $product->getData($this->cacheProductWeeeAmount);
232  }
233 
243  public function typeOfDisplay(
244  $compareTo = null,
245  $zone = \Magento\Framework\Pricing\Render::ZONE_DEFAULT,
246  $store = null
247  ) {
248  if (!$this->isEnabled($store)) {
249  return false;
250  }
251  switch ($zone) {
252  case \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW:
253  $type = $this->getPriceDisplayType($store);
254  break;
255  case \Magento\Framework\Pricing\Render::ZONE_ITEM_LIST:
257  break;
258  case \Magento\Framework\Pricing\Render::ZONE_SALES:
259  case \Magento\Framework\Pricing\Render::ZONE_CART:
261  break;
262  case \Magento\Framework\Pricing\Render::ZONE_EMAIL:
264  break;
265  default:
266  if ($this->_coreRegistry->registry('current_product')) {
267  $type = $this->getPriceDisplayType($store);
268  } else {
270  }
271  break;
272  }
273 
274  if ($compareTo === null) {
275  return $type;
276  } else {
277  if (is_array($compareTo)) {
278  return in_array($type, $compareTo);
279  } else {
280  return $type == $compareTo;
281  }
282  }
283  }
284 
296  public function getProductWeeeAttributes(
297  $product,
298  $shipping = null,
299  $billing = null,
300  $website = null,
301  $calculateTaxes = false,
302  $round = true
303  ) {
304  return $this->_weeeTax->getProductWeeeAttributes(
305  $product,
306  $shipping,
307  $billing,
308  $website,
309  $calculateTaxes,
310  $round
311  );
312  }
313 
321  {
322  return $this->getRecursiveNumericAmount($item, 'getWeeeTaxAppliedAmount');
323  }
324 
332  {
333  return $this->getRecursiveNumericAmount($item, 'getWeeeTaxAppliedRowAmount');
334  }
335 
344  {
345  return $this->getRecursiveNumericAmount($item, 'getBaseWeeeTaxAppliedRowAmnt');
346  }
347 
355  protected function getRecursiveNumericAmount($item, $functionName)
356  {
357  if ($item instanceof QuoteAbstractItem || $item instanceof OrderItem) {
358  if ($item->getHasChildren() && $item->isChildrenCalculated()) {
359  $result = 0;
360  $children = $item instanceof OrderItem ? $item->getChildrenItems() : $item->getChildren();
361  foreach ($children as $child) {
362  $childData = $this->getRecursiveNumericAmount($child, $functionName);
363  if (!empty($childData)) {
364  $result += $childData;
365  }
366  }
367 
368  return $result;
369  }
370  }
371 
372  $data = $item->$functionName();
373  if (empty($data)) {
374  return 0;
375  }
376  return $data;
377  }
378 
385  public function getApplied($item)
386  {
387  if ($item instanceof QuoteAbstractItem) {
388  if ($item->getHasChildren() && $item->isChildrenCalculated()) {
389  $result = [];
390  foreach ($item->getChildren() as $child) {
391  $childData = $this->getApplied($child);
392  if (is_array($childData)) {
393  $result = array_merge($result, $childData);
394  }
395  }
396  return $result;
397  }
398  }
399 
400  // if order item data is old enough then weee_tax_applied might not be valid
401  $data = $item->getWeeeTaxApplied();
402  if (empty($data)) {
403  return [];
404  }
405  return $this->serializer->unserialize($item->getWeeeTaxApplied());
406  }
407 
415  public function setApplied($item, $value)
416  {
417  $item->setWeeeTaxApplied($this->serializer->serialize($value));
418  return $this;
419  }
420 
427  public function getProductWeeeAttributesForDisplay($product)
428  {
430  $store = $product->getStore();
431 
432  if ($this->isEnabled($store)) {
433  $calculateTax = ($this->typeOfDisplay(1) || $this->typeOfDisplay(2)) ? 1 : 0;
434  return $this->getProductWeeeAttributes($product, null, null, null, $calculateTax, false);
435  }
436  return [];
437  }
438 
449  public function getProductWeeeAttributesForRenderer(
450  $product,
451  $shipping = null,
452  $billing = null,
453  $website = null,
454  $calculateTaxes = false
455  ) {
457  if ($website) {
458  $store = $this->_storeManager->getWebsite($website)->getDefaultGroup()->getDefaultStore();
459  } else {
460  $store = $product->getStore();
461  }
462 
463  if ($this->isEnabled($store)) {
464  return $this->getProductWeeeAttributes(
465  $product,
466  $shipping,
467  $billing,
468  $website,
469  $calculateTaxes ? $calculateTaxes : $this->typeOfDisplay(1)
470  );
471  }
472  return [];
473  }
474 
481  public function getWeeeTaxInclTax($item)
482  {
483  $weeeTaxAppliedAmounts = $this->getApplied($item);
484  $totalWeeeTaxIncTaxApplied = 0;
485  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
486  $totalWeeeTaxIncTaxApplied += max($weeeTaxAppliedAmount['amount_incl_tax'], 0);
487  }
488  return $totalWeeeTaxIncTaxApplied;
489  }
490 
497  public function getBaseWeeeTaxInclTax($item)
498  {
499  $weeeTaxAppliedAmounts = $this->getApplied($item);
500  $totalBaseWeeeTaxIncTaxApplied = 0;
501  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
502  $totalBaseWeeeTaxIncTaxApplied += max($weeeTaxAppliedAmount['base_amount_incl_tax'], 0);
503  }
504  return $totalBaseWeeeTaxIncTaxApplied;
505  }
506 
513  public function getRowWeeeTaxInclTax($item)
514  {
515  $weeeTaxAppliedAmounts = $this->getApplied($item);
516  $totalWeeeTaxIncTaxApplied = 0;
517  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
518  $totalWeeeTaxIncTaxApplied += max($weeeTaxAppliedAmount['row_amount_incl_tax'], 0);
519  }
520  return $totalWeeeTaxIncTaxApplied;
521  }
522 
530  {
531  $weeeTaxAppliedAmounts = $this->getApplied($item);
532  $totalWeeeTaxIncTaxApplied = 0;
533  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
534  $totalWeeeTaxIncTaxApplied += max($weeeTaxAppliedAmount['base_row_amount_incl_tax'], 0);
535  }
536  return $totalWeeeTaxIncTaxApplied;
537  }
538 
546  {
547  $weeeTaxAppliedAmounts = $this->getApplied($item);
548  $totalTaxForWeeeTax = 0;
549  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
550  $totalTaxForWeeeTax += max(
551  $weeeTaxAppliedAmount['amount_incl_tax']
552  - $weeeTaxAppliedAmount['amount'],
553  0
554  );
555  }
556  return $totalTaxForWeeeTax;
557  }
558 
566  {
567  $weeeTaxAppliedAmounts = $this->getApplied($item);
568  $totalTaxForWeeeTax = 0;
569  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
570  $totalTaxForWeeeTax += max(
571  $weeeTaxAppliedAmount['base_amount_incl_tax']
572  - $weeeTaxAppliedAmount['base_amount'],
573  0
574  );
575  }
576  return $totalTaxForWeeeTax;
577  }
578 
584  {
585  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
586  $totalAmountInvoiced = 0;
587  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
588  if (isset($weeeTaxAppliedAmount[self::KEY_WEEE_AMOUNT_INVOICED])) {
589  $totalAmountInvoiced = $weeeTaxAppliedAmount[self::KEY_WEEE_AMOUNT_INVOICED];
590  break;
591  }
592  }
593  return $totalAmountInvoiced;
594  }
595 
601  {
602  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
603  $baseTotalAmountInvoiced = 0;
604  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
605  if (isset($weeeTaxAppliedAmount[self::KEY_BASE_WEEE_AMOUNT_INVOICED])) {
606  $baseTotalAmountInvoiced = $weeeTaxAppliedAmount[self::KEY_BASE_WEEE_AMOUNT_INVOICED];
607  break;
608  }
609  }
610  return $baseTotalAmountInvoiced;
611  }
612 
618  {
619  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
620  $totalTaxInvoiced = 0;
621  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
622  if (isset($weeeTaxAppliedAmount[self::KEY_WEEE_TAX_AMOUNT_INVOICED])) {
623  $totalTaxInvoiced = $weeeTaxAppliedAmount[self::KEY_WEEE_TAX_AMOUNT_INVOICED];
624  break;
625  }
626  }
627  return $totalTaxInvoiced;
628  }
629 
635  {
636  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
637  $baseTotalTaxInvoiced = 0;
638  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
639  if (isset($weeeTaxAppliedAmount[self::KEY_BASE_WEEE_TAX_AMOUNT_INVOICED])) {
640  $baseTotalTaxInvoiced = $weeeTaxAppliedAmount[self::KEY_BASE_WEEE_TAX_AMOUNT_INVOICED];
641  break;
642  }
643  }
644  return $baseTotalTaxInvoiced;
645  }
646 
652  {
653  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
654  $totalAmountRefunded = 0;
655  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
656  if (isset($weeeTaxAppliedAmount[self::KEY_WEEE_AMOUNT_REFUNDED])) {
657  $totalAmountRefunded = $weeeTaxAppliedAmount[self::KEY_WEEE_AMOUNT_REFUNDED];
658  break;
659  }
660  }
661  return $totalAmountRefunded;
662  }
663 
669  {
670  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
671  $baseTotalAmountRefunded = 0;
672  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
673  if (isset($weeeTaxAppliedAmount[self::KEY_BASE_WEEE_AMOUNT_REFUNDED])) {
674  $baseTotalAmountRefunded = $weeeTaxAppliedAmount[self::KEY_BASE_WEEE_AMOUNT_REFUNDED];
675  break;
676  }
677  }
678  return $baseTotalAmountRefunded;
679  }
680 
686  {
687  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
688  $totalTaxRefunded = 0;
689  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
690  if (isset($weeeTaxAppliedAmount[self::KEY_WEEE_TAX_AMOUNT_REFUNDED])) {
691  $totalTaxRefunded = $weeeTaxAppliedAmount[self::KEY_WEEE_TAX_AMOUNT_REFUNDED];
692  break;
693  }
694  }
695  return $totalTaxRefunded;
696  }
697 
703  {
704  $weeeTaxAppliedAmounts = $this->getApplied($orderItem);
705  $baseTotalTaxRefunded = 0;
706  foreach ($weeeTaxAppliedAmounts as $weeeTaxAppliedAmount) {
707  if (isset($weeeTaxAppliedAmount[self::KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED])) {
708  $baseTotalTaxRefunded = $weeeTaxAppliedAmount[self::KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED];
709  break;
710  }
711  }
712  return $baseTotalTaxRefunded;
713  }
714 
722  public function getTotalAmounts($items, $store = null)
723  {
724  $weeeTotal = 0;
725  $displayTotalsInclTax = $this->displayTotalsInclTax($store);
726  foreach ($items as $item) {
727  if ($displayTotalsInclTax) {
728  $weeeTotal += $this->getRowWeeeTaxInclTax($item);
729  } else {
730  $weeeTotal += $item->getWeeeTaxAppliedRowAmount();
731  }
732  }
733  return $weeeTotal;
734  }
735 
744  public function getBaseTotalAmounts($items, $store = null)
745  {
746  $baseWeeeTotal = 0;
747  $displayTotalsInclTax = $this->displayTotalsInclTax($store);
748  foreach ($items as $item) {
749  if ($displayTotalsInclTax) {
750  $baseWeeeTotal += $this->getBaseRowWeeeTaxInclTax($item);
751  } else {
752  $baseWeeeTotal += $item->getBaseWeeeTaxAppliedRowAmnt();
753  }
754  }
755  return $baseWeeeTotal;
756  }
757 
764  public function isDisplayIncl($storeId = null)
765  {
766  return $this->typeOfDisplay(
767  WeeeDisplayConfig::DISPLAY_INCL,
768  \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW,
769  $storeId
770  );
771  }
772 
779  public function isDisplayInclDesc($storeId = null)
780  {
781  return $this->typeOfDisplay(
782  WeeeDisplayConfig::DISPLAY_INCL_DESCR,
783  \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW,
784  $storeId
785  );
786  }
787 
794  public function isDisplayExclDescIncl($storeId = null)
795  {
796  return $this->typeOfDisplay(
797  WeeeDisplayConfig::DISPLAY_EXCL_DESCR_INCL,
798  \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW,
799  $storeId
800  );
801  }
802 
809  public function isDisplayExcl($storeId = null)
810  {
811  return $this->typeOfDisplay(
812  WeeeDisplayConfig::DISPLAY_EXCL,
813  \Magento\Framework\Pricing\Render::ZONE_ITEM_VIEW,
814  $storeId
815  );
816  }
817 
824  public function getTaxDisplayConfig($store = null)
825  {
826  return $this->_taxData->getPriceDisplayType($store);
827  }
828 
836  {
837  if ($product->getTypeId() == \Magento\Catalog\Model\Product\Type::TYPE_BUNDLE) {
838  $typeInstance = $product->getTypeInstance();
839  $typeInstance->setStoreFilter($product->getStoreId(), $product);
840 
841  $selectionCollection = $typeInstance->getSelectionsCollection(
842  $typeInstance->getOptionsIds($product),
843  $product
844  );
845  $insertedWeeeCodesArray = [];
846  foreach ($selectionCollection as $selectionItem) {
847  $weeeAttributes = $this->getProductWeeeAttributes(
848  $selectionItem,
849  null,
850  null,
851  $product->getStore()->getWebsiteId(),
852  true,
853  false
854  );
855  $priceTaxDisplay = $this->getTaxDisplayConfig();
856  $priceIncludesTax = $this->displayTotalsInclTax();
857  foreach ($weeeAttributes as $weeeAttribute) {
858  if ($priceTaxDisplay == \Magento\Tax\Model\Config::DISPLAY_TYPE_INCLUDING_TAX ||
859  $priceTaxDisplay == \Magento\Tax\Model\Config::DISPLAY_TYPE_BOTH) {
860  if ($priceIncludesTax == false) {
861  $weeeAttribute['amount'] = $weeeAttribute['amount_excl_tax'] + $weeeAttribute['tax_amount'];
862  }
863  } elseif ($priceTaxDisplay == \Magento\Tax\Model\Config::DISPLAY_TYPE_EXCLUDING_TAX) {
864  if ($priceIncludesTax == true) {
865  $weeeAttribute['amount'] = $weeeAttribute['amount_excl_tax'];
866  }
867  }
868  $insertedWeeeCodesArray[$selectionItem->getId()][$weeeAttribute->getCode()] = $weeeAttribute;
869  }
870  }
871  return $insertedWeeeCodesArray;
872  }
873  return [];
874  }
875 }
getBaseWeeeTaxAppliedRowAmount($item)
Definition: Data.php:343
getBaseWeeeAmountRefunded($orderItem)
Definition: Data.php:668
getWeeeTaxAppliedAmount($item)
Definition: Data.php:320
getWeeeTaxAmountRefunded($orderItem)
Definition: Data.php:685
getBaseWeeeAmountInvoiced($orderItem)
Definition: Data.php:600
isEnabled($store=null)
Definition: Data.php:190
getBaseWeeeTaxAmountRefunded($orderItem)
Definition: Data.php:702
elseif(isset( $params[ 'redirect_parent']))
Definition: iframe.phtml:17
$orderItem
Definition: order.php:30
return false
Definition: gallery.phtml:36
const KEY_WEEE_AMOUNT_REFUNDED
Definition: Data.php:35
getTotalTaxAppliedForWeeeTax($item)
Definition: Data.php:545
getWeeeTaxAmountInvoiced($orderItem)
Definition: Data.php:617
isDisplayExclDescIncl($storeId=null)
Definition: Data.php:794
getRecursiveNumericAmount($item, $functionName)
Definition: Data.php:355
getBaseWeeeTaxAmountInvoiced($orderItem)
Definition: Data.php:634
getRowWeeeTaxInclTax($item)
Definition: Data.php:513
const KEY_BASE_WEEE_AMOUNT_INVOICED
Definition: Data.php:29
setApplied($item, $value)
Definition: Data.php:415
$storeManager
isDisplayInclDesc($storeId=null)
Definition: Data.php:779
getWeeeAttributesForBundle($product)
Definition: Data.php:835
typeOfDisplay( $compareTo=null, $zone=\Magento\Framework\Pricing\Render::ZONE_DEFAULT, $store=null)
Definition: Data.php:243
const KEY_WEEE_TAX_AMOUNT_INVOICED
Definition: Data.php:31
const KEY_WEEE_AMOUNT_INVOICED
Definition: Data.php:27
const KEY_BASE_WEEE_AMOUNT_REFUNDED
Definition: Data.php:37
const KEY_BASE_WEEE_TAX_AMOUNT_REFUNDED
Definition: Data.php:41
getProductWeeeAttributes( $product, $shipping=null, $billing=null, $website=null, $calculateTaxes=false, $round=true)
Definition: Data.php:296
isDisplayIncl($storeId=null)
Definition: Data.php:764
getBaseRowWeeeTaxInclTax($item)
Definition: Data.php:529
includeInSubtotal($store=null)
Definition: Data.php:179
$amount
Definition: order.php:14
$type
Definition: item.phtml:13
getWeeeAmountInvoiced($orderItem)
Definition: Data.php:583
$value
Definition: gender.phtml:16
getBaseWeeeTaxInclTax($item)
Definition: Data.php:497
getPriceDisplayType($store=null)
Definition: Data.php:124
getBaseTotalAmounts($items, $store=null)
Definition: Data.php:744
__construct(\Magento\Framework\App\Helper\Context $context, \Magento\Store\Model\StoreManagerInterface $storeManager, \Magento\Weee\Model\Tax $weeeTax, \Magento\Weee\Model\Config $weeeConfig, \Magento\Tax\Helper\Data $taxData, \Magento\Framework\Registry $coreRegistry, \Magento\Framework\Serialize\Serializer\Json $serializer=null)
Definition: Data.php:99
getSalesPriceDisplayType($store=null)
Definition: Data.php:146
getEmailPriceDisplayType($store=null)
Definition: Data.php:157
getWeeeTaxAppliedRowAmount($item)
Definition: Data.php:331
$children
Definition: actions.phtml:11
$selectionCollection
const KEY_WEEE_TAX_AMOUNT_REFUNDED
Definition: Data.php:39
isDisplayExcl($storeId=null)
Definition: Data.php:809
displayTotalsInclTax($store=null)
Definition: Data.php:201
getBaseTotalTaxAppliedForWeeeTax($item)
Definition: Data.php:565
getListPriceDisplayType($store=null)
Definition: Data.php:135
getWeeeTaxInclTax($item)
Definition: Data.php:481
isTaxable($store=null)
Definition: Data.php:168
getTaxDisplayConfig($store=null)
Definition: Data.php:824
const KEY_BASE_WEEE_TAX_AMOUNT_INVOICED
Definition: Data.php:33
getWeeeAmountRefunded($orderItem)
Definition: Data.php:651
$items
getTotalAmounts($items, $store=null)
Definition: Data.php:722