[ 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_PurchaseOrderPDFController 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('purchaseorder_no')); 21 } 22 23 function buildHeaderModelColumnCenter() { 24 $contactName = $this->resolveReferenceLabel($this->focusColumnValue('contact_id'), 'Contacts'); 25 $vendorName = $this->resolveReferenceLabel($this->focusColumnValue('vendor_id'), 'Vendors'); 26 $trackingNumber = $this->focusColumnValue('tracking_no'); 27 $requisitionNumber = $this->focusColumnValue('requisition_no'); 28 29 $contactNameLabel = getTranslatedString('Contact Name', $this->moduleName); 30 $vendorNameLabel = getTranslatedString('Vendor Name', $this->moduleName); 31 $trackingNumberLabel = getTranslatedString('Tracking Number', $this->moduleName); 32 $requisitionNumberLabel = getTranslatedString('Requisition Number', $this->moduleName); 33 34 $modelColumn1 = array( 35 $contactNameLabel => $contactName, 36 $vendorNameLabel => $vendorName, 37 $trackingNumberLabel=> $trackingNumber, 38 $requisitionNumberLabel=>$requisitionNumber 39 40 ); 41 return $modelColumn1; 42 } 43 44 function buildHeaderModelColumnRight() { 45 $issueDateLabel = getTranslatedString('Issued Date', $this->moduleName); 46 $validDateLabel = getTranslatedString('Due Date', $this->moduleName); 47 $billingAddressLabel = getTranslatedString('Billing Address', $this->moduleName); 48 $shippingAddressLabel = getTranslatedString('Shipping Address', $this->moduleName); 49 50 $modelColumn2 = array( 51 'dates' => array( 52 $issueDateLabel => $this->formatDate(date("Y-m-d")), 53 $validDateLabel => $this->formatDate($this->focusColumnValue('duedate')), 54 ), 55 $billingAddressLabel => $this->buildHeaderBillingAddress(), 56 $shippingAddressLabel => $this->buildHeaderShippingAddress() 57 ); 58 return $modelColumn2; 59 } 60 61 function getWatermarkContent() { 62 return $this->focusColumnValue('postatus'); 63 } 64 } 65 ?>
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 |