Fixes in sales reports to use debtor_trans.tax_included field instead of trans_tax_de...
[fa-stable.git] / reporting / rep113.php
index aec634e25f3da7d65e1b562d3766d7451011240a..26f51fbde9c934b0161b157af97652cc08ee569e 100644 (file)
@@ -163,7 +163,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)
                                {