/**
  * Calculates the total quantity for this item.
  *
  * What this really means is that if this is a child item, it return the parent quantity times
  * the child quantity and return that as the child's quantity.
  *
  * @param QuoteDetailsItem $item
  * @return float
  */
 protected function getTotalQuantity(QuoteDetailsItem $item)
 {
     if ($item->getParentCode()) {
         $parentQuantity = $this->keyedItems[$item->getParentCode()]->getQuantity();
         return $parentQuantity * $item->getQuantity();
     }
     return $item->getQuantity();
 }