diff --git a/modules/SalesOrder/SalesOrderPDFController.php b/modules/SalesOrder/SalesOrderPDFController.php index 1be42942f0..4c22b33bc8 100644 --- a/modules/SalesOrder/SalesOrderPDFController.php +++ b/modules/SalesOrder/SalesOrderPDFController.php @@ -27,8 +27,6 @@ function getHeaderViewer() { function buildHeaderModelColumnLeft() { $modelColumnLeft = parent::buildHeaderModelColumnLeft(); - $modelColumnLeft['fieldlabel'] = getTranslatedString('Quote Name', $this->moduleName); - $modelColumnLeft['fieldvalue'] = $this->resolveReferenceLabel($this->focusColumnValue('quote_id'), 'Quotes'); return $modelColumnLeft; } @@ -37,17 +35,20 @@ function buildHeaderModelColumnCenter() { $customerName = $this->resolveReferenceLabel($this->focusColumnValue('account_id'), 'Accounts'); $contactName = $this->resolveReferenceLabel($this->focusColumnValue('contact_id'), 'Contacts'); $purchaseOrder = $this->focusColumnValue('vtiger_purchaseorder'); + $quote = $this->resolveReferenceLabel($this->focusColumnValue('quote_id'), 'Quotes'); $subjectLabel = getTranslatedString('Subject', $this->moduleName); $customerNameLabel = getTranslatedString('Customer Name', $this->moduleName); $contactNameLabel = getTranslatedString('Contact Name', $this->moduleName); $purchaseOrderLabel = getTranslatedString('Purchase Order', $this->moduleName); + $quoteLabel = getTranslatedString('Quote Name', $this->moduleName); $modelColumn1 = array( $subjectLabel => $subject, $customerNameLabel => $customerName, $contactNameLabel => $contactName, - $purchaseOrderLabel => $purchaseOrder + //$purchaseOrderLabel => $purchaseOrder, + $quoteLabel => $quote ); return $modelColumn1; }