• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/delivery/services/automatic.php
  • Класс: BitrixSaleDeliveryServicesAutomatic
  • Вызов: Automatic::processAdditionalInfoShipmentEdit
public function processAdditionalInfoShipmentEdit(Shipment $shipment, array $requestData)
{
	$result = '';

	if(isset($this->handlerInitParams["PROCESS_ADD_INFO_SHIPMENT_EDIT"]) && is_callable($this->handlerInitParams["PROCESS_ADD_INFO_SHIPMENT_EDIT"]))
	{
		$result = call_user_func(
			$this->handlerInitParams["PROCESS_ADD_INFO_SHIPMENT_EDIT"],
			$shipment,
			$requestData
		);

		if($result && get_class($result) != 'BitrixSaleShipment')
			throw new SystemException('PROCESS_ADD_INFO_SHIPMENT_EDIT return value myst be of type "BitrixSaleResult" !');
	}

	return $result;
}