- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/lib/integration/bizproc/document/valuecollection/base.php
- Класс: Bitrix\Crm\Integration\BizProc\Document\ValueCollection\Base
- Вызов: Base::loadProductValues
protected function loadProductValues(): void
{
$productRows = Crm\ProductRowTable::getList([
'select' => ['ID', 'PRODUCT_ID', 'CP_PRODUCT_NAME', 'SUM_ACCOUNT'],
'filter' => [
'=OWNER_TYPE' => \CCrmOwnerTypeAbbr::ResolveByTypeID($this->typeId),
'=OWNER_ID' => $this->id,
],
'order' => ['SORT' => 'ASC'],
])->fetchAll();
$this->document['PRODUCT_IDS'] = array_column($productRows, 'ID');
$this->document['PRODUCT_IDS_PRINTABLE'] = '';
if (!empty($productRows))
{
$this->document['PRODUCT_IDS_PRINTABLE'] = $this->getProductRowsPrintable($productRows);
}
}