CCrmViewHelper::RenderInvoiceStatusInfo

  1. Bitrix24 API (v. 23.675.0)
  2. crm
  3. CCrmViewHelper
  4. RenderInvoiceStatusInfo
  • Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_view_helper.php
  • Класс: \CCrmViewHelper
  • Вызов: CCrmViewHelper::RenderInvoiceStatusInfo
static function RenderInvoiceStatusInfo($params)
{
	$html = '
'.PHP_EOL; foreach ($params['items'] as $k => $item) { $style = ''; if (empty($item['value']) || (!$params['statusFailed'] && !$params['statusSuccess']) || ($params['statusSuccess'] && $item['status'] === 'failed') || ($params['statusFailed'] && $item['status'] === 'success')) { $style = ' style="display: none;"'; } $html .= "\t".'
'.PHP_EOL; $html .= "\t\t".''.htmlspecialcharsbx(GetMessage('CRM_INVOICE_FIELD_'.$k)).':'.PHP_EOL; $html .= "\t\t".''.htmlspecialcharsbx($item['value']).''.PHP_EOL; $html .= "\t".'
'.PHP_EOL; } $html .= '
'.PHP_EOL; return $html; }

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