public static function GetDealStage($deal_id) { $res = ""; $ar = CCrmDeal::GetByID($deal_id); if (is_array($ar)) { $rr = $ar["STAGE_ID"]; $res = CArkaCrm::TranslateDealStage($rr); } return $res; }