Esempio n. 1
0
 /**
  * Validate cost price and get cost line item data array for a valid cost.
  *
  * @param null|oxPrice $mPrice
  * @param int          $iLineItem
  * @param string       $sCost
  *
  * @return array
  */
 protected function _validateCostPriceAndGetItsData($mPrice, $iLineItem, $sCost)
 {
     if (empty($mPrice) or !$mPrice instanceof oxPrice or !$mPrice->getPrice()) {
         return array();
     }
     return $aItemData = (array) $this->_getCostSummary($iLineItem, $sCost, $mPrice);
 }