function preDisplay()
 {
     global $mod_strings, $timedate, $user;
     parent::preDisplay();
     $this->_initOptions();
     //retrieve the sales person's first name
     global $beanFiles;
     require_once $beanFiles['User'];
     $rep = BeanFactory::getBean('Users', $this->bean->assigned_user_id);
     $quote[0]['TITLE'] = $mod_strings['LBL_PDF_QUOTE_NUMBER'];
     $quote[1]['TITLE'] = $mod_strings['LBL_PDF_QUOTE_DATE'];
     $quote[2]['TITLE'] = $mod_strings['LBL_PDF_SALES_PERSON'];
     $quote[3]['TITLE'] = $mod_strings['LBL_PDF_QUOTE_CLOSE'];
     $quote[0]['VALUE']['value'] = format_number_display($this->bean->quote_num, $this->bean->system_id);
     $quote[1]['VALUE']['value'] = $timedate->nowDate();
     $quote[2]['VALUE']['value'] = $rep->first_name . ' ' . $rep->last_name;
     $quote[3]['VALUE']['value'] = $this->bean->date_quote_expected_closed;
     // these options override the params of the $options array.
     $quote[0]['VALUE']['options'] = array();
     $quote[1]['VALUE']['options'] = array();
     $quote[2]['VALUE']['options'] = array();
     $quote[3]['VALUE']['options'] = array();
     $html = $this->writeHTMLTable($quote, true, $this->headerOptions);
     $this->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $mod_strings['LBL_PDF_QUOTE_TITLE'], $html);
 }
 function preDisplay()
 {
     global $mod_strings, $timedate;
     parent::preDisplay();
     $quote[0]['TITLE'] = $mod_strings['LBL_PDF_INVOICE_NUMBER'];
     $quote[1]['TITLE'] = $mod_strings['LBL_PDF_QUOTE_DATE'];
     $quote[2]['TITLE'] = $mod_strings['LBL_PURCHASE_ORDER_NUM'];
     $quote[3]['TITLE'] = $mod_strings['LBL_PAYMENT_TERMS'];
     $quote[0]['VALUE']['value'] = format_number_display($this->bean->quote_num, $this->bean->system_id);
     $quote[1]['VALUE']['value'] = $timedate->nowDate();
     $quote[2]['VALUE']['value'] = $this->bean->purchase_order_num;
     $quote[3]['VALUE']['value'] = $this->bean->payment_terms;
     // these options override the params of the $options array.
     $quote[0]['VALUE']['options'] = array();
     $quote[1]['VALUE']['options'] = array();
     $quote[2]['VALUE']['options'] = array();
     $quote[3]['VALUE']['options'] = array();
     $html = $this->writeHTMLTable($quote, true, $this->headerOptions);
     $this->SetHeaderData(PDF_HEADER_LOGO, PDF_HEADER_LOGO_WIDTH, $mod_strings['LBL_PDF_INVOICE_TITLE'], $html);
 }
Example #3
0
 function get_list_view_data()
 {
     global $current_language;
     $app_list_strings = return_app_list_strings_language($current_language);
     $temp_array = $this->get_list_view_array();
     $temp_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $temp_array['PRIORITY'] = empty($this->priority) ? "" : (!isset($app_list_strings[$this->field_name_map['priority']['options']][$this->priority]) ? $this->priority : $app_list_strings[$this->field_name_map['priority']['options']][$this->priority]);
     $temp_array['STATUS'] = empty($this->status) ? "" : (!isset($app_list_strings[$this->field_name_map['status']['options']][$this->status]) ? $this->status : $app_list_strings[$this->field_name_map['status']['options']][$this->status]);
     $temp_array['ENCODED_NAME'] = $this->name;
     $temp_array['CASE_NUMBER'] = $this->case_number;
     $temp_array['SET_COMPLETE'] = "<a href='index.php?return_module=Home&return_action=index&action=EditView&module=Cases&record={$this->id}&status=Closed'>" . SugarThemeRegistry::current()->getImage("close_inline", "title=" . translate('LBL_LIST_CLOSE', 'Cases') . " border='0'", null, null, '.gif', translate('LBL_LIST_CLOSE', 'Cases')) . "</a>";
     //$temp_array['ACCOUNT_NAME'] = $this->account_name; //overwrites the account_name value returned from the cases table.
     $temp_array['CASE_NUMBER'] = format_number_display($this->case_number, $this->system_id);
     return $temp_array;
 }
Example #4
0
 public function get_list_view_data()
 {
     global $current_language, $current_user, $mod_strings, $app_list_strings, $sugar_config;
     $app_strings = return_application_language($current_language);
     $temp_array = $this->get_list_view_array();
     if (isset($this->assigned_name)) {
         $temp_array['TEAM_NAME'] = $this->assigned_name;
     }
     if (isset($this->team_name)) {
         $temp_array['TEAM_NAME'] = $this->team_name;
     }
     $temp_array["ENCODED_NAME"] = $this->name;
     $temp_array["QUOTE_NUM"] = format_number_display($this->quote_num, $this->system_id);
     return $temp_array;
 }
Example #5
0
 function get_list_view_data()
 {
     global $current_language;
     $the_array = parent::get_list_view_data();
     $app_list_strings = return_app_list_strings_language($current_language);
     $mod_strings = return_module_language($current_language, 'Bugs');
     $this->set_release();
     // The new listview code only fetches columns that we're displaying and not all
     // the columns so we need these checks.
     $the_array['NAME'] = $this->name == "" ? "<em>blank</em>" : $this->name;
     $the_array['PRIORITY'] = empty($this->priority) ? "" : (!isset($app_list_strings[$this->field_name_map['priority']['options']][$this->priority]) ? $this->priority : $app_list_strings[$this->field_name_map['priority']['options']][$this->priority]);
     $the_array['STATUS'] = empty($this->status) ? "" : (!isset($app_list_strings[$this->field_name_map['status']['options']][$this->status]) ? $this->status : $app_list_strings[$this->field_name_map['status']['options']][$this->status]);
     $the_array['TYPE'] = empty($this->type) ? "" : (!isset($app_list_strings[$this->field_name_map['type']['options']][$this->type]) ? $this->type : $app_list_strings[$this->field_name_map['type']['options']][$this->type]);
     $the_array['RELEASE'] = $this->release_name;
     $the_array['BUG_NUMBER'] = $this->bug_number;
     $the_array['ENCODED_NAME'] = $this->name;
     $the_array['BUG_NUMBER'] = format_number_display($this->bug_number, $this->system_id);
     return $the_array;
 }