• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/component/usestore.php
  • Класс: BitrixCatalogComponentUseStore
  • Вызов: UseStore::resetCrmRealizations
static function resetCrmRealizations(): void
{
	if (Loader::includeModule('crm'))
	{
		$realizations = ShipmentRealizationTable::getList([
			'filter' => [
				'=IS_REALIZATION' => 'Y',
			],
		]);
		foreach ($realizations as $realization)
		{
			ShipmentRealizationTable::delete($realization['ID']);
			ShipmentTable::deleteWithItems($realization['SHIPMENT_ID']);
		}
	}
}