12 static public function handlerCallbackOnSaleOrderSaved(
Event $event)
17 if((
new Integration\Connector\
Manager())->isOn())
21 $fields = new \Bitrix\Sale\Internals\Fields(
30 if($fields->get(
'entityTypeId') == Integration\CRM\EntityType::DEAL
31 && $fields->get(
'entityId')>0)
33 $params[$order->getId()] = [
34 'OWNER_TYPE_ID'=>Integration\CRM\EntityType::DEAL,
35 'OWNER_ID'=>$fields->get(
'entityId')
39 ->update($fields->get(
'entityId'), $params);
63 OrderTable::update($order->getId(), [
'IS_SYNC_B24' =>
'Y']);