• Модуль: catalog
  • Путь к файлу: ~/bitrix/modules/catalog/lib/integration/sale/cashbox/eventhandlers/check.php
  • Класс: BitrixCatalogIntegrationSaleCashboxEventHandlersCheck
  • Вызов: Check::getSupplierInfo
static function getSupplierInfo(array $contractor): array
{
	$name = ($contractor['TYPE'] === self::TYPE_INDIVIDUAL)
		? $contractor['PERSON_NAME']
		: $contractor['COMPANY_NAME']
	;

	$phone = $contractor['PHONES'] ?: [];

	return [
		'PHONES' => $phone,
		'NAME' => $name,
		'INN' => $contractor['INN'],
	];
}