Direct sales invoice due date was not stored in database.
authorJanusz Dobrowolski <janusz@frontaccouting.eu>
Wed, 27 Apr 2011 23:00:53 +0000 (01:00 +0200)
committerJanusz Dobrowolski <janusz@frontaccouting.eu>
Wed, 27 Apr 2011 23:00:53 +0000 (01:00 +0200)
sales/includes/cart_class.inc

index 79a90ad7114a4e7150d5cc24624f98d2dcc0e329..cc7d15675b660a8437f6f08c7e8fbd94c0d6d58c 100644 (file)
@@ -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);