X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fcustomer_invoice.php;fp=sales%2Fcustomer_invoice.php;h=20af722a3ce0603ee77064c449cb4af573231b80;hb=89e8ca2be9235215ac2e2bf5e58d7eedd2dda84d;hp=ba0c8a413ffe7618c0311f3713bb6847f1864186;hpb=5a7ef37131354aabdcf04c639a903e5876b743e4;p=fa-stable.git diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index ba0c8a41..20af722a 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -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."));