13 static public function statusNotify(
Event $event)
18 if(static::isSync($order) ==
true)
20 if($order->isNew() ==
false)
22 $idOld = $order->getFields()->getOriginalValues()[
'STATUS_ID'] ??
'';
24 $id = $order->getField(
'STATUS_ID');
28 'ENTITY_TYPE_ID' => Integration\CRM\EntityType::ORDER,
29 'FIELD_NAME' =>
'STATUS_ID',
30 'CURRENT_VALUE' => $name,
31 'PREVIOUS_VALUE' => $nameOld
34 static::onReceive($order->getId(), $settings);
38 static public function canceledNotify(
Event $event)
43 if(static::isSync($order) ==
true)
45 if($order->isCanceled())
48 'ENTITY_TYPE_ID' => Integration\CRM\EntityType::ORDER,
49 'FIELD_NAME' =>
'CANCELED',
50 'CURRENT_VALUE' =>
'Y',
51 'LEGEND' =>
Loc::getMessage(
'SALE_INTEGRATION_B24_TIMELINE_ORDER_NUMBER').$order->getId(),
54 static::onReceive($order->getId(), $settings);
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)