_taxConfig = $taxConfig; parent::__construct($taxHelper, $taxCalculation, $ordersFactory, $data); } /** * Check if tax amount should be included to grandtotal block * array( * $index => array( * 'amount' => $amount, * 'label' => $label, * 'font_size'=> $font_size * ) * ) * @return array */ public function getTotalsForDisplay() { $store = $this->getOrder()->getStore(); if ($this->_taxConfig->displaySalesTaxWithGrandTotal($store)) { return []; } $totals = []; if ($this->_taxConfig->displaySalesFullSummary($store)) { $totals = $this->getFullTaxInfo(); } $totals = array_merge($totals, parent::getTotalsForDisplay()); return $totals; } }