[ 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_InvoicePDFController 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('invoice_no')); 21 } 22 23 function buildHeaderModelColumnCenter() { 24 $customerName = $this->resolveReferenceLabel($this->focusColumnValue('account_id'), 'Accounts'); 25 $contactName = $this->resolveReferenceLabel($this->focusColumnValue('contact_id'), 'Contacts'); 26 $purchaseOrder = $this->focusColumnValue('vtiger_purchaseorder'); 27 $salesOrder = $this->resolveReferenceLabel($this->focusColumnValue('salesorder_id')); 28 29 $customerNameLabel = getTranslatedString('Customer Name', $this->moduleName); 30 $contactNameLabel = getTranslatedString('Contact Name', $this->moduleName); 31 $purchaseOrderLabel = getTranslatedString('Purchase Order', $this->moduleName); 32 $salesOrderLabel = getTranslatedString('Sales Order', $this->moduleName); 33 34 $modelColumnCenter = array( 35 $customerNameLabel => $customerName, 36 $purchaseOrderLabel => $purchaseOrder, 37 $contactNameLabel => $contactName, 38 $salesOrderLabel => $salesOrder 39 ); 40 return $modelColumnCenter; 41 } 42 43 function buildHeaderModelColumnRight() { 44 $issueDateLabel = getTranslatedString('Issued Date', $this->moduleName); 45 $validDateLabel = getTranslatedString('Due Date', $this->moduleName); 46 $billingAddressLabel = getTranslatedString('Billing Address', $this->moduleName); 47 $shippingAddressLabel = getTranslatedString('Shipping Address', $this->moduleName); 48 49 $modelColumnRight = array( 50 'dates' => array( 51 $issueDateLabel => $this->formatDate(date("Y-m-d")), 52 $validDateLabel => $this->formatDate($this->focusColumnValue('duedate')), 53 ), 54 $billingAddressLabel => $this->buildHeaderBillingAddress(), 55 $shippingAddressLabel => $this->buildHeaderShippingAddress() 56 ); 57 return $modelColumnRight; 58 } 59 60 function getWatermarkContent() { 61 return $this->focusColumnValue('invoicestatus'); 62 } 63 } 64 ?>
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 |