добавил передачу agency_id в битрикс при создании контакта

This commit is contained in:
developer 2026-04-13 10:47:44 +08:00
parent c823ce14d2
commit 966b368aec

View File

@ -15,5 +15,6 @@ public function __construct(Agent $agent)
$this->addDataItem('name', $agent->user->name); $this->addDataItem('name', $agent->user->name);
$this->addDataItem('phones', [$agent->user->phone]); $this->addDataItem('phones', [$agent->user->phone]);
$this->addDataItem('agency_id', [$agent->company->bitrixId()]); $this->addDataItem('agency_id', [$agent->company->bitrixId()]);
dd($this->data);
} }
} }