• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/internals/transferprovidercompatibility.php
  • Класс: BitrixSaleInternalsTransferProviderCompatibility
  • Вызов: TransferProviderCompatibility::getReservedQuantity
static function getReservedQuantity(SaleShipment $shipment)
{
	$reservedQuantityList = array();
	$shipmentItemCollection = $shipment->getShipmentItemCollection();
	if (!$shipmentItemCollection)
	{
		throw new MainObjectNotFoundException('Entity "ShipmentItemCollection" not found');
	}

	/** @var SaleShipmentItem $shipmentItem */
	foreach ($shipmentItemCollection as $shipmentItem)
	{
		$reservedQuantityList[$shipmentItem->getInternalIndex()] = $shipmentItem->getReservedQuantity();
	}

	return $reservedQuantityList;
}