X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fheader2.inc;h=2f23a36ac719b2a5d0ccb1a06dfc3b7315269334;hb=e8f8879003c1918b59e6da26be7f3927115ec21f;hp=ebbbe15536c7b750f1fbabda5dfe1eeef14f5a0e;hpb=906fc86a0a567a32448a98a833a286ce44332af3;p=fa-stable.git diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index ebbbe155..2f23a36a 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -1,4 +1,14 @@ . +***********************************************************************/ $this->row = $this->pageHeight - $this->topMargin; @@ -179,7 +189,9 @@ $this->TextWrap($col, $this->row, $width, $doc_Due_Date, 'C'); $this->row = $iline3 - $this->lineHeight - 1; $col = $this->leftMargin; - if (isset($sales_order["customer_ref"])) + if ($doctype == 8) + $this->TextWrap($col, $this->row, $width, $myrow['supp_account_no'], 'C'); + elseif (isset($sales_order["customer_ref"])) $this->TextWrap($col, $this->row, $width, $sales_order["customer_ref"], 'C'); $col += $width; if ($branch != null) @@ -265,7 +277,7 @@ $this->NewLine(); } $legal = get_company_pref('legal_text'); - if ($doctype == 10 && $legal != "") + if (($doctype == 10 || $doctype == 12) && $legal != "") { $this->TextWrap($ccol, $this->row, $right - $ccol, $legal, 'C'); $this->NewLine();