File tree Expand file tree Collapse file tree 2 files changed +2
-19
lines changed
Block/Adminhtml/Sales/Order/Items
view/adminhtml/templates/sales/invoice/create/items Expand file tree Collapse file tree 2 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -271,22 +271,4 @@ public function canShowPriceInfo($item)
271
271
}
272
272
return false ;
273
273
}
274
-
275
- /**
276
- * Check if this iten should be shipped together
277
- *
278
- * @param object $item
279
- * @return bool
280
- */
281
- public function isShipTogether ($ item )
282
- {
283
- $ orderItem = $ item ->getOrderItem ();
284
- if ($ orderItem ->getProductType () == \Magento \Catalog \Model \Product \Type::TYPE_BUNDLE ) {
285
- $ shipTogether = !$ orderItem ->isShipSeparately ();
286
- } else {
287
- $ shipTogether = !$ orderItem ->getParentItem ()->isShipSeparately ();
288
- }
289
-
290
- return $ shipTogether ;
291
- }
292
274
}
Original file line number Diff line number Diff line change 29
29
30
30
<?php foreach ($ items as $ _item ): ?>
31
31
<?php
32
- $ shipTogether = $ block ->isShipTogether ($ _item );
32
+ $ shipTogether = ($ _item ->getOrderItem ()->getProductType () == \Magento \Catalog \Model \Product \Type::TYPE_BUNDLE ) ?
33
+ !$ _item ->getOrderItem ()->isShipSeparately () : !$ _item ->getOrderItem ()->getParentItem ()->isShipSeparately ()
33
34
?>
34
35
<?php $ block ->setPriceDataObject ($ _item ) ?>
35
36
<?php if ($ _item ->getOrderItem ()->getParentItem ()): ?>
You can’t perform that action at this time.
0 commit comments