Commit dc9d5620 authored by Kulya's avatar Kulya 😊

Begin adding Client to Billz 5

parent 4ae6225f
......@@ -787,6 +787,9 @@ class AloVoiceRest
$resCont = BxRest::call("crm.contact.get",[ "id" => $clientId ]);
ALVC::eLog($resCont["result"],"------ Billz :: Client(contact) RES:");
ALVC::eLog((empty($resCont["UF_CRM_1644411792448"])),"------ Billz :: Client(contact) CHECK:");
ALVC::eLog((!empty($resCont["PHONE"][0]["VALUE"])),"------ Billz :: Client(contact) CHECK 2:");
if(empty($resCont["UF_CRM_1644411792448"]) && !empty($resCont["PHONE"][0]["VALUE"])){
$arClientParams = [ "phone" => $resCont["PHONE"][0]["VALUE"] ];
if(!empty( $resCont["NAME"] )){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment