From: Joe Hunt Date: Sat, 30 Jul 2011 22:37:32 +0000 (+0200) Subject: 0000960: When printing PO's the PO# is the Trans_id not the Forms Reference number. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=7e1c882cc143c56657a0440996fbd22421e5626a;p=textcart.git 0000960: When printing PO's the PO# is the Trans_id not the Forms Reference number. --- 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'],