18 protected $_template =
'Magento_Tax::checkout/grandtotal.phtml';
36 \
Magento\Customer\Model\Session $customerSession,
37 \
Magento\Checkout\Model\Session $checkoutSession,
38 \
Magento\Sales\Model\Config $salesConfig,
43 $this->_taxConfig = $taxConfig;
45 $this->_isScopePrivate =
true;
55 if ($this->getTotal()->getValue()) {
56 return $this->_taxConfig->displayCartTaxWithGrandTotal($this->
getStore());
68 $excl = $this->getTotal()->getValue() - $this->_totals[
'tax']->getValue();
69 $excl = max($excl, 0);
__construct(\Magento\Framework\View\Element\Template\Context $context, \Magento\Customer\Model\Session $customerSession, \Magento\Checkout\Model\Session $checkoutSession, \Magento\Sales\Model\Config $salesConfig, \Magento\Tax\Model\Config $taxConfig, array $layoutProcessors=[], array $data=[])