• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/reportmanager.php
  • Класс: BitrixSaleCashboxReportManager
  • Вызов: ReportManager::getLastZReport
static function getLastZReport($cashboxId)
{
	$dbRes = InternalsCashboxZReportTable::getList(
		array(
			'select' => array('*'),
			'filter' => array('CASHBOX_ID' => $cashboxId),
			'order' => array('ID' => 'DESC'),
			'limit' => 1,
		)
	);

	return $dbRes->fetch();
}