From 7e1c882cc143c56657a0440996fbd22421e5626a Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Sun, 31 Jul 2011 00:37:32 +0200 Subject: [PATCH] 0000960: When printing PO's the PO# is the Trans_id not the Forms Reference number. --- reporting/includes/doctext.inc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/reporting/includes/doctext.inc b/reporting/includes/doctext.inc index 4d92c66..a889e0b 100644 --- a/reporting/includes/doctext.inc +++ b/reporting/includes/doctext.inc @@ -153,7 +153,8 @@ $Addr2['name'] = $this->company['coy_name']; $Addr2['address'] = $this->company['postal_address']; $this->formData['document_date'] = $this->formData['ord_date']; - $this->formData['document_number'] = $this->formData['order_no']; + $this->formData['document_number'] = $print_invoice_no == 0 && isset($this->formData['reference']) + ? $this->formData['reference'] : $this->formData['order_no']; $aux_info = array( _("Customers Reference") => $this->formData['supp_account_no'], -- 2.30.2