public function getPercentShipped(){
        if (isset($this->data['NumberOfItemsShipped']) && isset($this->data['NumberOfItemsUnshipped'])){
            $total = $this->data['NumberOfItemsShipped'] + $this->data['NumberOfItemsUnshipped'];
            
            if ($total == 0){
                return 0;
            }
            
            $ratio = $this->data['NumberOfItemsShipped'] / $total;
            return $ratio;
        } else {
            return false;
        }
    }
public function getPercentShipped(){
        if (isset($this->data['NumberOfItemsShipped']) && isset($this->data['NumberOfItemsUnshipped'])){
            $total = $this->data['NumberOfItemsShipped'] + $this->data['NumberOfItemsUnshipped'];
            
            if ($total == 0){
                return 0;
            }
            
            $ratio = $this->data['NumberOfItemsShipped'] / $total;
            return $ratio;
        } else {
            return false;
        }
    }
public function getPercentShipped ( ) { if ( isset ( $ this -> data [ 'NumberOfItemsShipped' ] ) && isset ( $ this -> data [ 'NumberOfItemsUnshipped' ] ) ) { $ total = $ this -> data [ 'NumberOfItemsShipped' ] + $ this -> data [ 'NumberOfItemsUnshipped' ] ; if ( $ total == 0 ) { return 0 ; } $ ratio = $ this -> data [ 'NumberOfItemsShipped' ] / $ total ; return $ ratio ; } else { return false ; } }
Returns the ratio of shipped items to unshipped items.

This method will return <b>FALSE</b> if the shipment numbers have not been set yet.
@return float|boolean Decimal number from 0 to 1, or <b>FALSE</b> if numbers not set yet
Returns the ratio of shipped items to unshipped items .