Fixed print of taxes on documents
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 13 Jul 2011 12:52:43 +0000 (14:52 +0200)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 13 Jul 2011 12:52:43 +0000 (14:52 +0200)
reporting/rep107.php
reporting/rep109.php
reporting/rep110.php
reporting/rep209.php

index 1f081ee2204be4cbf17923a039d7a069750b0b10..e2a50b331b25028912153126a80e8022eed38d2f 100644 (file)
@@ -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)
index 845d0ac746301e19fb1643c60e8380e068b9f91b..c775bb907769c08b2e787a57e7816e7d4af0cc72 100644 (file)
@@ -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)
index 6b392cd0ab3fe987d107348586c74b7d8726c636..06857a8da97770581c4570ac11e61bd45337f5d8 100644 (file)
@@ -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)
index 500263c835665b2990a739b30dacaa806cce7e93..51156d73c65b9bbc6440dd9486eef07d64e934bb 100644 (file)
@@ -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)