Позволяет ввмещатся в фильтр заказов в админке и добавлять свои условия
Bitrix\Main\EventManager::getInstance()->addEventHandler(
'sale',
'OnSaleAdminOrderList',
function (\Bitrix\Main\Event $e) {
$handlerResult = $e->getParameters();
$test = $handlerResult;
$test['filter']['PROP_CITY.CODE'] = 'LOCATION';
$test['filter']['=PROP_CITY.VALUE'] = '0000355960';
$test['runtime']['PROP_CITY'] = array(
'data_type' => 'Bitrix\Sale\Internals\OrderPropsValueTable',
'reference' => array(
'=this.ID' => 'ref.ORDER_ID',
)
);
return new \Bitrix\Main\EventResult(
\Bitrix\Main\EventResult::SUCCESS,
$test
);
}
);