File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed
app/code/Magento/Sales/Model/Order/Pdf Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
+
7
+ declare (strict_types=1 );
8
+
6
9
namespace Magento \Sales \Model \Order \Pdf ;
7
10
8
11
/**
9
12
* Sales Order Creditmemo PDF model
13
+ *
10
14
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
11
15
*/
12
16
class Creditmemo extends AbstractPdf
@@ -180,11 +184,11 @@ public function getPdf($creditmemos = [])
180
184
}
181
185
/* Add totals */
182
186
$ this ->insertTotals ($ page , $ creditmemo );
187
+ if ($ creditmemo ->getStoreId ()) {
188
+ $ this ->_localeResolver ->revert ();
189
+ }
183
190
}
184
191
$ this ->_afterGetPdf ();
185
- if ($ creditmemo ->getStoreId ()) {
186
- $ this ->_localeResolver ->revert ();
187
- }
188
192
return $ pdf ;
189
193
}
190
194
You can’t perform that action at this time.
0 commit comments