...Человеческий поиск в разработке...
- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/productrow.php
- Класс: Bitrix\Crm\ProductRow
- Вызов: ProductRow::createProductReservation
private function createProductReservation(array $fields): ?Reservation\ProductRowReservation { $productRowReservation = Reservation\ProductRowReservationFactory::createFromArray($this, $fields); if (!$productRowReservation) { return null; } // mark as remove if store set empty. Don't delete if not setted, may be it is partial update of reserve. if ($productRowReservation->hasStoreId() && empty($productRowReservation->getStoreId())) { if (!$productRowReservation->isNew()) { $productRowReservation->delete(); } return null; } if ($productRowReservation->isNew()) { $productRowReservation->set(Reservation\ProductRowReservation::PRODUCT_ROW_NAME, $this); } return $productRowReservation; }