From c944c47bce4750f3906857cf22a15b83a67572e3 Mon Sep 17 00:00:00 2001 From: Joe Hunt Date: Wed, 13 Jul 2011 14:52:43 +0200 Subject: [PATCH] Fixed print of taxes on documents --- reporting/rep107.php | 2 ++ reporting/rep109.php | 2 ++ reporting/rep110.php | 2 ++ reporting/rep209.php | 2 ++ 4 files changed, 8 insertions(+) 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) -- 2.30.2