From: Joe Hunt Date: Wed, 13 Jul 2011 12:52:43 +0000 (+0200) Subject: Fixed print of taxes on documents X-Git-Tag: v2.4.2~19^2~376 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=c944c47bce4750f3906857cf22a15b83a67572e3;p=fa-stable.git Fixed print of taxes on documents --- diff --git a/reporting/rep107.php b/reporting/rep107.php index 1f081ee2..e2a50b33 100644 --- a/reporting/rep107.php +++ b/reporting/rep107.php @@ -172,6 +172,8 @@ function print_invoices() $first = true; while ($tax_item = db_fetch($tax_items)) { + if ($tax_item['amount'] == 0) + continue; $DisplayTax = number_format2($sign*$tax_item['amount'], $dec); if (isset($suppress_tax_rates) && $suppress_tax_rates == 1) diff --git a/reporting/rep109.php b/reporting/rep109.php index 845d0ac7..c775bb90 100644 --- a/reporting/rep109.php +++ b/reporting/rep109.php @@ -166,6 +166,8 @@ function print_sales_orders() $first = true; foreach($tax_items as $tax_item) { + if ($tax_item['amount'] == 0) + continue; $DisplayTax = number_format2($tax_item['Value'], $dec); if (isset($suppress_tax_rates) && $suppress_tax_rates == 1) diff --git a/reporting/rep110.php b/reporting/rep110.php index 6b392cd0..06857a8d 100644 --- a/reporting/rep110.php +++ b/reporting/rep110.php @@ -168,6 +168,8 @@ function print_deliveries() $first = true; while ($tax_item = db_fetch($tax_items)) { + if ($tax_item['amount'] == 0) + continue; $DisplayTax = number_format2($tax_item['amount'], $dec); if (isset($suppress_tax_rates) && $suppress_tax_rates == 1) diff --git a/reporting/rep209.php b/reporting/rep209.php index 500263c8..51156d73 100644 --- a/reporting/rep209.php +++ b/reporting/rep209.php @@ -172,6 +172,8 @@ function print_po() $first = true; foreach($tax_items as $tax_item) { + if ($tax_item['amount'] == 0) + continue; $DisplayTax = number_format2($tax_item['Value'], $dec); if (isset($suppress_tax_rates) && $suppress_tax_rates == 1)