Minor fix
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Nov 2009 22:30:41 +0000 (22:30 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Thu, 26 Nov 2009 22:30:41 +0000 (22:30 +0000)
reporting/includes/header2.inc

index 386f6d6acc3fd9e2d699ffbbdd8a7fcbd37562bf..c4cff6316f84e54ad15c237488889bf17d336340 100644 (file)
                                        $ref = get_reference(ST_CUSTDELIVERY, $delivery);
                                        if ($ref)
                                                $delivery = $ref;
-                                       else
-                                               continue;
                                }               
                                if ($line == "")
                                        $line .= "$delivery";
                }
                elseif ($doctype == 13)
                {
-                       $ref = $myrow['order_'];
+                       $ref = "";
                        if ($print_invoice_no == 0)
                        {
                                $ref = get_reference(ST_SALESORDER, $myrow['order_']);
                                if (!$ref)
-                                       $ref = "";
+                                       $ref = $myrow['order_'];
                        }               
                        $this->TextWrap($col, $this->row, $width, $ref, 'C');
                }