SEL ECT SUM(`OPPORTUNITY`) FR OM `b_crm_deal` WHERE `ASSIGNED_BY_ID`=5 GROUP BY `ASSIGNED_BY_ID` |
OnAfterComponent("bitrix:crm.company.show", &$arResult) { $arResult["FIELDS"]["customtab"][] = Array( 'id' => 'CUSTOM_TAB', 'name' => 'CUSTOM', 'colspan' => true, 'type' => 'custom', 'value' => $tabContent ); return $arResult; } |