• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/shipment.php
  • Класс: BitrixSaleShipment
  • Вызов: Shipment::getShipmentCode
public function getShipmentCode()
{
	if ($this->internalId === 0)
	{
		if ($this->getId() > 0)
		{
			$this->internalId = $this->getId();
		}
		else
		{
			static::$idShipment++;
			$this->internalId = static::$idShipment;
		}
	}
	return $this->internalId;
}