Old ineffective sql_trail superseded by new improved db_trail logging only calls...
[fa-stable.git] / sales / customer_invoice.php
index ba0c8a413ffe7618c0311f3713bb6847f1864186..20af722a3ce0603ee77064c449cb4af573231b80 100644 (file)
@@ -358,7 +358,7 @@ if (isset($_POST['process_invoice']) && check_data()) {
        if ($newinvoice) 
                new_doc_date($_SESSION['Items']->document_date);
 
-       $invoice_no = $_SESSION['Items']->write();
+       $invoice_no = write_sales_trans($_SESSION['Items']);
        if ($invoice_no == -1)
        {
                display_error(_("The entered reference is already in use."));