- Модуль: crm
- Путь к файлу: ~/bitrix/modules/crm/classes/general/crm_deal.php
- Класс: \CAllCrmDeal
- Вызов: CAllCrmDeal::SynchronizeProductRows
static function SynchronizeProductRows($ID, $checkPerms = true) { $arTotalInfo = CCrmProductRow::CalculateTotalInfo('D', $ID, $checkPerms); if (is_array($arTotalInfo)) { $arFields = array( 'TAX_VALUE' => isset($arTotalInfo['TAX_VALUE']) ? $arTotalInfo['TAX_VALUE'] : 0.0 ); $entity = new CCrmDeal($checkPerms); if (!$entity::isManualOpportunity($ID)) { $arFields['OPPORTUNITY'] = isset($arTotalInfo['OPPORTUNITY']) ? $arTotalInfo['OPPORTUNITY'] : 0.0; $arFields['OPPORTUNITY'] += static::calculateDeliveryTotal($ID); } $entity->Update($ID, $arFields); } }