From: Janusz Dobrowolski Date: Wed, 27 Apr 2011 23:00:53 +0000 (+0200) Subject: Direct sales invoice due date was not stored in database. X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=47fcd8d682836086e0efe766ab74133ec4a36768;p=textcart.git Direct sales invoice due date was not stored in database. --- 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);