[ Index ] |
PHP Cross Reference of vtigercrm-6.1.0 |
[Summary view] [Print] [Text view]
1 <?php 2 /*+********************************************************************************** 3 * The contents of this file are subject to the vtiger CRM Public License Version 1.0 4 * ("License"); You may not use this file except in compliance with the License 5 * The Original Code is: vtiger CRM Open Source 6 * The Initial Developer of the Original Code is vtiger. 7 * Portions created by vtiger are Copyright (C) vtiger. 8 * All Rights Reserved. 9 ************************************************************************************/ 10 11 include_once 'include/InventoryPDFController.php'; 12 13 class Vtiger_QuotePDFController extends Vtiger_InventoryPDFController{ 14 function buildHeaderModelTitle() { 15 $singularModuleNameKey = 'SINGLE_'.$this->moduleName; 16 $translatedSingularModuleLabel = getTranslatedString($singularModuleNameKey, $this->moduleName); 17 if($translatedSingularModuleLabel == $singularModuleNameKey) { 18 $translatedSingularModuleLabel = getTranslatedString($this->moduleName, $this->moduleName); 19 } 20 return sprintf("%s: %s", $translatedSingularModuleLabel, $this->focusColumnValue('quote_no')); 21 } 22 23 function getWatermarkContent() { 24 return $this->focusColumnValue('quotestatus'); 25 } 26 27 function buildHeaderModelColumnRight() { 28 $issueDateLabel = getTranslatedString('Issued Date', $this->moduleName); 29 $validDateLabel = getTranslatedString('Valid Date', $this->moduleName); 30 $billingAddressLabel = getTranslatedString('Billing Address', $this->moduleName); 31 $shippingAddressLabel = getTranslatedString('Shipping Address', $this->moduleName); 32 33 $modelColumn2 = array( 34 'dates' => array( 35 $issueDateLabel => $this->formatDate(date("Y-m-d")), 36 $validDateLabel => $this->formatDate($this->focusColumnValue('validtill')), 37 ), 38 $billingAddressLabel => $this->buildHeaderBillingAddress(), 39 $shippingAddressLabel => $this->buildHeaderShippingAddress() 40 ); 41 return $modelColumn2; 42 } 43 } 44 45 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Fri Nov 28 20:08:37 2014 | Cross-referenced by PHPXref 0.7.1 |