Merged changes up to 2.3.16 into unstable
[fa-stable.git] / reporting / rep113.php
index ed5cc705cc6a40534fe0f772bd65c4a72ad4e8fb..2e8e1dc5484509dbc28aaa39803e19fc7230ada5 100644 (file)
@@ -91,7 +91,7 @@ function print_credits()
                        $rep->Font();
                        $rep->Info($params, $cols, null, $aligns);
 
-                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], false);
+                       $contacts = get_branch_contacts($branch['branch_code'], 'invoice', $branch['debtor_no'], true);
                        $rep->SetCommonData($myrow, $branch, $sales_order, $baccount, ST_CUSTCREDIT, $contacts);
                        $rep->NewPage();
 
@@ -160,7 +160,7 @@ function print_credits()
                        else
                                $tax_type_name = $tax_item['tax_type_name']." (".$tax_item['rate']."%) ";
 
-                       if ($tax_item['included_in_price'])
+                       if ($myrow['tax_included'])
                        {
                                if (isset($alternative_tax_include_on_docs) && $alternative_tax_include_on_docs == 1)
                                {