X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fcart_class.inc;h=f388b54cac18e438ba4c17d63eb5db614642814c;hb=9a6be31598b20ab95541e4c89db43ff56a105cc2;hp=286ada110dfad40eee5c2133c843f1e84eb6111d;hpb=dcbdc8355d7a31eddf501e676a3e29a501d73a1b;p=fa-stable.git diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index 286ada11..f388b54c 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -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);