• Модуль: sale
  • Путь к файлу: ~/bitrix/modules/sale/lib/cashbox/cashboxpaysystem.php
  • Класс: BitrixSaleCashboxCashboxPaySystem
  • Вызов: CashboxPaySystem::needPrintCheck
protected function needPrintCheck(Check $check): bool
{
	$isShipmentEntity = (bool)array_filter($check->getEntities(), static function ($entity) {
		return $entity instanceof SaleShipment;
	});

	return $check::getType() === SellCheck::getType() && $isShipmentEntity;
}