Changes in POS extension related to bank account structure change.
[fa-stable.git] / reporting / includes / header2.inc
index 07c73f9677db6c49c496e9dfc1d5a540ab76279e..341788040cbf1e052ea78f6d12e89f7573452328 100644 (file)
                // 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))