Small cleanups.
authorJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 12 Mar 2010 21:27:10 +0000 (21:27 +0000)
committerJanusz Dobrowolski <janusz@frontaccounting.eu>
Fri, 12 Mar 2010 21:27:10 +0000 (21:27 +0000)
reporting/rep301.php
reporting/rep304.php
reporting/rep601.php

index 04ab84e92868f0f2c43b446ab34e00592adc5ac6..4bd74be3e42bbfbdd1fe9135a35f47628024e88f 100644 (file)
@@ -141,13 +141,13 @@ function print_inventory_valuation_report()
                if ($detail)
                {
                        $rep->NewLine();
-                       $rep->fontsize -= 2;
+                       $rep->fontSize -= 2;
                        $rep->TextCol(0, 1, $trans['stock_id']);
                        $rep->TextCol(1, 2, $trans['description']);
                        $rep->AmountCol(2, 3, $trans['QtyOnHand'], get_qty_dec($trans['stock_id']));
                        $rep->AmountCol(3, 4, $trans['UnitCost'], $dec);
                        $rep->AmountCol(4, 5, $trans['ItemTotal'], $dec);
-                       $rep->fontsize += 2;
+                       $rep->fontSize += 2;
                }
                $total += $trans['ItemTotal'];
                $grandtotal += $trans['ItemTotal'];
index 624dabeaece0d8c437827b31532f7d95ddcfc14f..f40d8e56c5c7f5fc71ff53c0d750de43f079ad7f 100644 (file)
@@ -161,7 +161,7 @@ function print_inventory_sales()
                $trans['amt'] *= $rate;
                $cb = $trans['amt'] - $trans['cost'];
                $rep->NewLine();
-               $rep->fontsize -= 2;
+               $rep->fontSize -= 2;
                $rep->TextCol(0, 1, $trans['stock_id']);
                if ($fromcust == ALL_NUMERIC)
                {
@@ -174,7 +174,7 @@ function print_inventory_sales()
                $rep->AmountCol(4, 5, $trans['amt'], $dec);
                $rep->AmountCol(5, 6, $trans['cost'], $dec);
                $rep->AmountCol(6, 7, $cb, $dec);
-               $rep->fontsize += 2;
+               $rep->fontSize += 2;
                $total += $trans['amt'];
                $total1 += $trans['cost'];
                $total2 += $cb;
index 42c9ef30007820078c328edb8e9f12aadafe6df0..1d47bc78a1510ca4e201862ab6cdff147e2709bb 100644 (file)
@@ -104,11 +104,11 @@ function print_bank_transactions()
                $rep->Font();
                $total = $prev_balance;
                $rep->NewLine(2);
+               $total_debit = $total_credit = 0;
                if ($rows > 0)
                {
                        // Keep a running total as we loop through
                        // the transactions.
-                       $total_debit = $total_credit = 0;                       
                        
                        while ($myrow=db_fetch($trans))
                        {