Common ui code for allocations moved toallocation_cart.inc
[fa-stable.git] / sales / includes / cart_class.inc
index 286ada110dfad40eee5c2133c843f1e84eb6111d..f388b54cac18e438ba4c17d63eb5db614642814c 100644 (file)
@@ -151,7 +151,7 @@ class cart
                                  $this->customer_id = get_global_customer();
                                else
                                  $this->customer_id = '';
-                               $this->document_date = Today();
+                               $this->document_date =  new_doc_date();
                                if (!is_date_in_fiscalyear($this->document_date))
                                        $this->document_date = end_fiscalyear();
                                $this->reference = references::get_next($this->trans_type);