Skip to content

Commit b1ee919

Browse files
committed
AC:11798::Shipping price showing diffrent in printed pdf
1 parent 439e229 commit b1ee919

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\Sales\Model\Order\Pdf;
88

99
use Magento\Framework\App\Config\ScopeConfigInterface;
10+
use Magento\Framework\Exception\FileSystemException;
1011
use Magento\Framework\Filesystem;
1112
use Magento\Framework\Filesystem\Directory\ReadInterface;
1213
use Magento\Framework\Filesystem\Directory\WriteInterface;
@@ -163,16 +164,17 @@ abstract public function getPdf();
163164
* @param ScopeConfigInterface $scopeConfig
164165
* @param Filesystem $filesystem
165166
* @param Config $pdfConfig
166-
* @param Total\Factory $pdfTotalFactory
167+
* @param Factory $pdfTotalFactory
167168
* @param ItemsFactory $pdfItemsFactory
168169
* @param TimezoneInterface $localeDate
169170
* @param StateInterface $inlineTranslation
170171
* @param Renderer $addressRenderer
171-
* @param TaxHelper $taxHelper
172172
* @param array $data
173-
* @param Database $fileStorageDatabase
173+
* @param TaxHelper|null $taxHelper
174+
* @param Database|null $fileStorageDatabase
174175
* @param RtlTextHandler|null $rtlTextHandler
175-
* @param Image $image
176+
* @param Image|null $image
177+
* @throws FileSystemException
176178
* @SuppressWarnings(PHPMD.ExcessiveParameterList)
177179
*/
178180
public function __construct(
@@ -186,8 +188,8 @@ public function __construct(
186188
TimezoneInterface $localeDate,
187189
StateInterface $inlineTranslation,
188190
Renderer $addressRenderer,
189-
TaxHelper $taxHelper,
190191
array $data = [],
192+
?TaxHelper $taxHelper = null,
191193
Database $fileStorageDatabase = null,
192194
?RtlTextHandler $rtlTextHandler = null,
193195
?Image $image = null

0 commit comments

Comments
 (0)