From 40db4214ac1a17dadc1aead2134f14744ffcc2fe Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Sun, 3 May 2009 13:49:02 +0000 Subject: [PATCH] Fixed default document date handling --- sales/customer_invoice.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sales/customer_invoice.php b/sales/customer_invoice.php index b0bdbd65..bd0e2d2b 100644 --- a/sales/customer_invoice.php +++ b/sales/customer_invoice.php @@ -298,7 +298,7 @@ if (isset($_POST['process_invoice']) && check_data()) { $newinvoice= $_SESSION['Items']->trans_no == 0; copy_to_cart(); - if ($new_invoice) new_doc_date($_SESSION['Items']->document_date); + if ($newinvoice) new_doc_date($_SESSION['Items']->document_date); $invoice_no = $_SESSION['Items']->write(); processing_end(); -- 2.30.2