From: Janusz Dobrowolski Date: Sun, 3 May 2009 13:49:02 +0000 (+0000) Subject: Fixed default document date handling X-Git-Tag: v2.4.2~19^2~1418 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=40db4214ac1a17dadc1aead2134f14744ffcc2fe;p=fa-stable.git Fixed default document date handling --- 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();