• Модуль: crmmobile
  • Путь к файлу: ~/bitrix/modules/crmmobile/lib/ProductGrid/SummaryQuery.php
  • Класс: BitrixCrmMobileProductGridSummaryQuery
  • Вызов: SummaryQuery::__construct
public function __construct(Item $entity, ?array $products = null, ?string $currencyId = null, array $additionalConfig = [])
{
	$this->entity = $entity;
	if ($products === null)
	{
		$rows = $this->entity->getProductRows();
		$products = $rows ? $rows->toArray() : [];
	}
	$this->products = $products;
	$this->currencyId = $currencyId ?? $this->entity->getCurrencyId();
	$this->accounting = Container::getInstance()->getAccounting();
	$this->precision = CCrmCurrency::GetCurrencyDecimals($this->currencyId);
	$this->additionalConfig = $additionalConfig;
}