X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=sales%2Fincludes%2Fcart_class.inc;h=cc7d15675b660a8437f6f08c7e8fbd94c0d6d58c;hb=0025c69bbcdcf7445db44656a408c18832ac3a68;hp=f476088e023bf23eaf1087751980fbee3c3d334b;hpb=32549fac62977059b645de22b5ec5cf5cd7c3153;p=fa-stable.git diff --git a/sales/includes/cart_class.inc b/sales/includes/cart_class.inc index f476088e..cc7d1567 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); @@ -485,7 +487,7 @@ class cart if ($tax_items != null) { foreach ($tax_items as $item_tax) { $index = $item_tax['tax_type_id']; - if (isset($this->tax_group_array[$index])) { + if (isset($this->tax_group_array[$index]['rate'])) { $tax_rate += $item_tax['rate']; } }