Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function preDisplay(){
- global $mod_strings, $timedate, $user;
- parent::preDisplay();
- // require_once('modules/Contacts/Contact.php');
- // $contact = new Contact();
- // $contact->retrieve($this->bean->contact_id_c);
- $this->_initOptions();
- //retrieve the sales person's first name
- global $beanFiles;
- require_once($beanFiles['User']);
- $rep = BeanFactory::getBean('Users', $this->bean->assigned_user_id);
- // require_once($beanFiles['Lead']);
- // $contact = BeanFactory::getBean('Leads', $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);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement