Skip to content

Commit e32928d

Browse files
Pooja.ManralPooja.Manral
authored andcommitted
AC:11798::Shipping price showing diffrent in printed pdf
1 parent e009566 commit e32928d

File tree

5 files changed

+4
-7
lines changed

5 files changed

+4
-7
lines changed

app/code/Magento/Sales/Model/Order/Pdf/AbstractPdf.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,11 +176,12 @@ public function __construct(
176176
\Magento\Framework\Stdlib\DateTime\TimezoneInterface $localeDate,
177177
\Magento\Framework\Translate\Inline\StateInterface $inlineTranslation,
178178
\Magento\Sales\Model\Order\Address\Renderer $addressRenderer,
179-
TaxHelper $taxHelper,
180179
array $data = [],
181180
Database $fileStorageDatabase = null,
182181
?RtlTextHandler $rtlTextHandler = null,
183-
?Image $image = null
182+
?Image $image = null,
183+
?TaxHelper $taxHelper = null
184+
184185
) {
185186
$this->addressRenderer = $addressRenderer;
186187
$this->_paymentData = $paymentData;
@@ -193,7 +194,7 @@ public function __construct(
193194
$this->_pdfTotalFactory = $pdfTotalFactory;
194195
$this->_pdfItemsFactory = $pdfItemsFactory;
195196
$this->inlineTranslation = $inlineTranslation;
196-
$this->taxHelper = $taxHelper;
197+
$this->taxHelper = $taxHelper ?: ObjectManager::getInstance()->get(TaxHelper::class);
197198
$this->fileStorageDatabase = $fileStorageDatabase ?: ObjectManager::getInstance()->get(Database::class);
198199
$this->rtlTextHandler = $rtlTextHandler ?: ObjectManager::getInstance()->get(RtlTextHandler::class);
199200
$this->image = $image ?: ObjectManager::getInstance()->get(Image::class);

app/code/Magento/Sales/Model/Order/Pdf/Creditmemo.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ public function __construct(
7777
$localeDate,
7878
$inlineTranslation,
7979
$addressRenderer,
80-
$this->taxHelper,
8180
$data
8281
);
8382
}

app/code/Magento/Sales/Model/Order/Pdf/Invoice.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ public function __construct(
7373
$localeDate,
7474
$inlineTranslation,
7575
$addressRenderer,
76-
$this->taxHelper,
7776
$data
7877
);
7978
}

app/code/Magento/Sales/Model/Order/Pdf/Shipment.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,6 @@ public function __construct(
7272
$localeDate,
7373
$inlineTranslation,
7474
$addressRenderer,
75-
$this->taxHelper,
7675
$data
7776
);
7877
}

app/code/Magento/Shipping/Model/Order/Pdf/Packaging.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,6 @@ public function __construct(
8989
$localeDate,
9090
$inlineTranslation,
9191
$addressRenderer,
92-
$this->taxHelper,
9392
$data
9493
);
9594
}

0 commit comments

Comments
 (0)