• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/cashboxbitrix.php
  • Класс: BitrixSaleCashboxCashboxBitrix
  • Вызов: CashboxBitrix::getCashboxDefaultEmail
static function getCashboxDefaultEmail()
{
	$email = MainConfigOption::get('main', 'email_from');
	if (!$email)
	{
		$dbRes = MainUserGroupTable::getList([
			'select' => ['EMAIL' => 'USER.EMAIL'],
			'filter' => [
				'=GROUP_ID' => 1
			],
			'order' => [
				'USER.ID' => 'ASC'
			]
		]);

		$data = $dbRes->fetch();
		if ($data)
		{
			$email = $data['EMAIL'];
		}
	}

	return $email;
}