• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/paysystem/service.php
  • Класс: BitrixSalePaySystemService
  • Вызов: Service::canPrintCheckSelf
public function canPrintCheckSelf(Payment $payment): bool
{
	$service = $payment->getPaySystem();
	if (!$service || !$this->isSupportPrintCheck() || !$this->canPrintCheck())
	{
		return false;
	}

	/** @var CashboxCashboxPaySystem $cashboxClass */
	$cashboxClass = $this->getCashboxClass();
	$kkm = $cashboxClass::getKkmValue($service);

	return (bool)CashboxManager::getList([
		'select' => ['ID'],
		'filter' => [
			'=ACTIVE' => 'Y',
			'=HANDLER' => $cashboxClass,
			'=KKM_ID' => $kkm,
		],
	])->fetch();
}