X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=reporting%2Fincludes%2Fheader2.inc;h=341788040cbf1e052ea78f6d12e89f7573452328;hb=59840905a38c4e08e5b13fdb7af71ea6dea7b1f0;hp=84d93e1e738236ae21b34a0d4b5a49a379084c2d;hpb=6966df3f27be9638976f4ba3767ef69e432f4381;p=fa-stable.git diff --git a/reporting/includes/header2.inc b/reporting/includes/header2.inc index 84d93e1e..34178804 100644 --- a/reporting/includes/header2.inc +++ b/reporting/includes/header2.inc @@ -148,7 +148,7 @@ // 2008-06-16. Added customer's reference $this->NewLine(); $this->Text($ccol, $doc_Customers_Ref, $ccol2); - if ($sales_order != NULL) + if (isset($sales_order["customer_ref"])) $this->Text($ccol2, $sales_order["customer_ref"], $mcol); $locale = $path_to_root . "lang/" . $_SESSION['language']->code . "/locale.inc"; if (file_exists($locale)) @@ -215,7 +215,8 @@ if (isset($bankaccount['bank_name'])) $this->Text($mcol, $bankaccount['bank_name'], $mcol2); $this->NewLine(); - $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']); + if (isset($bankaccount['bank_address'])) + $this->TextWrapLines($mcol, $mcol2 - $mcol, $bankaccount['bank_address']); $this->row = $adrline; if (isset($bankaccount['bank_account_name'])) $this->Text($mcol2, $bankaccount['bank_account_name']);