CCrmInvoiceEventFormat::FormatInvoiceStatusChanged

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmInvoiceEventFormat
  4. FormatInvoiceStatusChanged
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_invoice_event.php
  • Класс: \CCrmInvoiceEventFormat
  • Вызов: CCrmInvoiceEventFormat::FormatInvoiceStatusChanged
static function FormatInvoiceStatusChanged($arData)
{
	$info = GetMessage("CRM_INVOICE_EVENT_INFO_STATUS_CHANGED");
	if (is_array($arData))
	{
		foreach ($arData as $param => $value)
		{
			if ($param == "STATUS_ID")
			{
				$res = CCrmStatusInvoice::getByID($value);
				$value = "\"".$res["NAME"]."\"";
			}

			$info = str_replace("#".$param."#", $value, $info);
		}
	}

	return array(
		"INFO" => $info
	);
}

Добавить комментарий