• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/exchange/entity/shipmentinvoice.php
  • Класс: BitrixSaleExchangeEntityShipmentInvoice
  • Вызов: ShipmentInvoice::resolveEntityTypeId
static function resolveEntityTypeId(Entity $shipment)
{
	if(!($shipment instanceof Shipment))
		throw new ArgumentException("Entity must be instanceof Shipment");

	return EntityType::INVOICE_SHIPMENT;
}