Cleanup comments. Small bugfixes. Final run
[fa-stable.git] / reporting / rep309.php
index 1bb9ba06a7df49c8abd83794b3da93cd48c800a0..b9c90bc46a7b0866ccc0a84fd793a6fc0e8e3da0 100644 (file)
@@ -113,8 +113,6 @@ function print_inventory_sales()
 
        $res = getTransactions($category, $from, $to);
        $total = $grandtotal = 0.0;
-       $total1 = $grandtotal1 = 0.0;
-       $total2 = $grandtotal2 = 0.0;
        $catt = '';
        while ($trans=db_fetch($res))
        {
@@ -128,7 +126,7 @@ function print_inventory_sales()
                                $rep->Line($rep->row - 2);
                                $rep->NewLine();
                                $rep->NewLine();
-                               $total = $total1 = $total2 = 0.0;
+                               $total = 0.0;
                        }
                        $rep->TextCol(0, 1, $trans['category_id']);
                        $rep->TextCol(1, 7, $trans['cat_description']);
@@ -163,4 +161,3 @@ function print_inventory_sales()
     $rep->End();
 }
 
-?>
\ No newline at end of file