• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/tradingplatform/ebay/feed/data/converters/inventory.php
  • Класс: BitrixSaleTradingPlatformEbayFeedDataConvertersInventory
  • Вызов: Inventory::getItemData
protected function getItemData($data, $skuPrefix = "")
{
	if(!isset($data["PRICES"]["MIN"]) || $data["PRICES"]["MIN"] <= 0)
		throw new SystemException("Can't find the price for product id: ".$data["ID"]." ! ".__METHOD__);

	if((float)$data["QUANTITY"] <= 0)
		return '';

	$quantity = (float)$data["QUANTITY"];

	if($this->maxProductQuantity !== null && $quantity > $this->maxProductQuantity)
		$quantity = $this->maxProductQuantity;

	$result = "tn";
	$result .= "tt".$skuPrefix.$data["ID"]."n";
	$result .= "tt".$data["PRICES"]["MIN"]."n";
	$result .= "tt".$quantity."n";
	$result .= "tn";

	return $result;
}