8 class Shipping extends \Magento\Sales\Model\Order\Pdf\Total\DefaultTotal
29 $this->_taxConfig = $taxConfig;
30 parent::__construct($taxHelper, $taxCalculation, $ordersFactory,
$data);
46 $store = $this->getOrder()->getStore();
48 $amountInclTax = $this->getSource()->getShippingInclTax();
49 if (!$amountInclTax) {
50 $amountInclTax = $this->
getAmount() + $this->getSource()->getShippingTaxAmount();
52 $amountInclTax = $this->getOrder()->formatPriceTxt($amountInclTax);
53 $fontSize = $this->getFontSize() ? $this->getFontSize() : 7;
55 if ($this->_taxConfig->displaySalesShippingBoth(
$store)) {
58 'amount' => $this->getAmountPrefix() .
$amount,
59 'label' =>
__(
'Shipping (Excl. Tax)') .
':',
60 'font_size' => $fontSize,
63 'amount' => $this->getAmountPrefix() . $amountInclTax,
64 'label' =>
__(
'Shipping (Incl. Tax)') .
':',
65 'font_size' => $fontSize
68 }
elseif ($this->_taxConfig->displaySalesShippingInclTax(
$store)) {
71 'amount' => $this->getAmountPrefix() . $amountInclTax,
72 'label' =>
__($this->getTitle()) .
':',
73 'font_size' => $fontSize,
79 'amount' => $this->getAmountPrefix() .
$amount,
80 'label' =>
__($this->getTitle()) .
':',
81 'font_size' => $fontSize,
__construct(\Magento\Tax\Helper\Data $taxHelper, \Magento\Tax\Model\Calculation $taxCalculation, \Magento\Tax\Model\ResourceModel\Sales\Order\Tax\CollectionFactory $ordersFactory, \Magento\Tax\Model\Config $taxConfig, array $data=[])
elseif(isset( $params[ 'redirect_parent']))