From 47fcd8d682836086e0efe766ab74133ec4a36768 Mon Sep 17 00:00:00 2001 From: Janusz Dobrowolski Date: Thu, 28 Apr 2011 01:00:53 +0200 Subject: [PATCH] Direct sales invoice due date was not stored in database. --- sales/includes/cart_class.inc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index 79a90ad..cc7d156 100644 --- a/sales/includes/cart_class.inc +++ b/sales/includes/cart_class.inc @@ -247,6 +247,7 @@ class cart // this is direct document - first add parent $ref = $this->reference; $date = $this->document_date; + $due_date = $this->due_date; $this->trans_type = get_parent_type($this->trans_type); $this->reference = 'auto'; @@ -256,6 +257,7 @@ class cart $this->read($this->trans_type, $trans_no, true); $this->document_date = $date; $this->reference = $ref; + $this->due_date = $due_date; } $this->reference = @html_entity_decode($this->reference, ENT_QUOTES); $this->Comments = @html_entity_decode($this->Comments, ENT_QUOTES); -- 2.30.2