private function isPartiallyItem($shippingItem, $includeDeliveryNoteStatus = false)
    {
        $item = $shippingItem->getItem();
        $sumShipped = $this->getSumOfShippedItemsByItemId($item->getId(), $includeDeliveryNoteStatus);
        $orderItem = $shippingItem->getShipping()->getOrder()->getItem($item->getId());
        // if all items are shipped (exclude current item)
        if ($sumShipped == $orderItem->getQuantity() - $shippingItem->getQuantity()) {
            return false;
        }
        return true;
    }
private function isPartiallyItem($shippingItem, $includeDeliveryNoteStatus = false)
    {
        $item = $shippingItem->getItem();
        $sumShipped = $this->getSumOfShippedItemsByItemId($item->getId(), $includeDeliveryNoteStatus);
        $orderItem = $shippingItem->getShipping()->getOrder()->getItem($item->getId());
        // if all items are shipped (exclude current item)
        if ($sumShipped == $orderItem->getQuantity() - $shippingItem->getQuantity()) {
            return false;
        }
        return true;
    }
private function isPartiallyItem ( $ shippingItem , $ includeDeliveryNoteStatus = false ) { $ item = $ shippingItem -> getItem ( ) ; $ sumShipped = $ this -> getSumOfShippedItemsByItemId ( $ item -> getId ( ) , $ includeDeliveryNoteStatus ) ; $ orderItem = $ shippingItem -> getShipping ( ) -> getOrder ( ) -> getItem ( $ item -> getId ( ) ) ; // if all items are shipped (exclude current item) if ( $ sumShipped == $ orderItem -> getQuantity ( ) - $ shippingItem -> getQuantity ( ) ) { return false ; } return true ; }
checks if an item is fully shipped or still open
@param $shippingItem
@param bool $includeDeliveryNoteStatus
@return bool
checks if an item is fully shipped or still open