//Added by Yesha 25-02-2019 //Quotation API starts public function get_quotation_pdf($session, $record_id, $pdf_type) { // $GLOBALS['log']->fatal('Begin: CustomSugarWebServiceImpl->get_quotation_pdf'); /*check whether the session is valid or not*/ $error = new SoapError(); if (!self::$helperObject->checkSessionAndModuleAccess($session, 'invalid_session', '', '', '', $error)) { return; } $dashboard_color_array = array("skipped as not detected in the next method below", "#49924c", "#ff6d00", "#3ab5e4", "#6892a4", "#913e98", "#d97a14","#716b32","#14bd7e","#c465bb","#462a36"); //array_rand($dashboard_color_array) $final_return_array = array(); // $GLOBALS['log']->fatal("Session : " . print_r($userlistdata, true)); // $GLOBALS['log']->fatal("Session11 : " . print_r($getall, true)); // $GLOBALS['log']->fatal("module_list : " . print_r($module_list, true)); // $GLOBALS['log']->fatal("Getall : " . print_r($getall, true)); if (isset($record_id) && isset($pdf_type)) { $file_data = self::$helperObject->lat_get_quotation_pdf($record_id, $pdf_type); } return $file_data; }