Merged changes from main branch up to 2.1.3.
[fa-stable.git] / reporting / rep109.php
index c5faf7692b4c7aa3cdb21e73acea1aabf54139f4..7c57da3f3f643afd30ff6d7ba4dda7ee85c3d351 100644 (file)
@@ -163,7 +163,7 @@ function print_sales_orders()
                                $myrow['contact_email'] = $branch['email'];
                                $myrow['DebtorName'] = $branch['br_name'];
                        }
-                       $rep->End($email, $doc_Invoice_no . " " . $myrow['reference'], $myrow);
+                       $rep->End($email, $doc_Invoice_no . " " . $i, $myrow);
                }
        }
        if ($email == 0)