[0000215} Wrong text in deliver to and not printing it.
[fa-stable.git] / reporting / includes / header2.inc
index 6a8c3b8efd73a9e80cc9f2c91c41e66a30f0a3da..d839ec424936381a51bf5af6548b998a1378c7de 100644 (file)
                if ($sales_order != NULL)
                {
                        $this->row = $temp;
-                       if ($doctype == ST_PURCHORDER)
+                       if ($doctype == ST_PURCHORDER) // comment out the next line if you don't want to print company name
                                $this->Text($mcol, $this->company['coy_name']);
                        elseif ($doctype != ST_SUPPAYMENT && isset($sales_order['deliver_to']))
                                $this->Text($mcol, $sales_order['deliver_to']);
                        $this->NewLine();
-                       if ($doctype != ST_SUPPAYMENT && isset($sales_order['deliver_to']))
+                       if ($doctype != ST_SUPPAYMENT && isset($sales_order['delivery_address']))
                                $this->TextWrapLines($mcol, $this->rightMargin - $mcol, $sales_order['delivery_address']);
                }
                $this->row = $iline2 - $this->lineHeight - 1;