Rerun
[fa-stable.git] / reporting / rep209.php
index 87b9f559a623ce49e356e5873f2dad1239f96c9b..55153ee09ecf94dc2e9e07c16303c5fbf09192e4 100644 (file)
@@ -179,7 +179,8 @@ function print_po()
                        $myrow['contact_email'] = $myrow['email'];
                        $myrow['DebtorName'] = $myrow['supp_name'];
                        if ($myrow['contact'] != '') $myrow['DebtorName'] = $myrow['contact'];
-                       $myrow['reference'] = $myrow['order_no'];
+                       if ($myrow['reference'] == "")
+                               $myrow['reference'] = $myrow['order_no'];
                        $rep->End($email, $doc_Order_no . " " . $myrow['reference'], $myrow);
                }
        }