• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/shipment.php
  • Класс: BitrixSaleShipment
  • Вызов: Shipment::createSystem
static function createSystem(ShipmentCollection $collection, DeliveryServicesBase $deliveryService = null)
{
	$shipment = static::create($collection, $deliveryService);
	$shipment->markSystem();

	if ($deliveryService === null)
	{
		$shipment->setFieldNoDemand('DELIVERY_ID', DeliveryServicesManager::getEmptyDeliveryServiceId());
	}

	return $shipment;
}