File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
app/code/Magento/Weee/Block/Item/Price Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -197,8 +197,7 @@ public function getUnitDisplayPriceExclTax()
197
197
public function getBaseUnitDisplayPriceExclTax ()
198
198
{
199
199
$ orderItem = $ this ->getItem ();
200
- if (is_a ($ orderItem , '\Magento\Sales\Model\Order\Invoice\Item ' ) ||
201
- is_a ($ orderItem , '\Magento\Sales\Model\Order\CreditMemo\Item ' )) {
200
+ if ($ orderItem instanceof InvoiceItem || $ orderItem instanceof CreditMemoItem) {
202
201
$ orderItem = $ orderItem ->getOrderItem ();
203
202
}
204
203
@@ -346,8 +345,7 @@ public function getFinalUnitDisplayPriceExclTax()
346
345
public function getBaseFinalUnitDisplayPriceExclTax ()
347
346
{
348
347
$ orderItem = $ this ->getItem ();
349
- if (is_a ($ orderItem , '\Magento\Sales\Model\Order\Invoice\Item ' ) ||
350
- is_a ($ orderItem , '\Magento\Sales\Model\Order\CreditMemo\Item ' )) {
348
+ if ($ orderItem instanceof InvoiceItem || $ orderItem instanceof CreditMemoItem) {
351
349
$ orderItem = $ orderItem ->getOrderItem ();
352
350
}
353
351
You can’t perform that action at this time.
0 commit comments