From: Janusz Dobrowolski Date: Fri, 12 Mar 2010 21:27:10 +0000 (+0000) Subject: Small cleanups. X-Git-Tag: v2.4.2~19^2~935 X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=commitdiff_plain;h=a893764480f704362f88e13aa8a8f3482743818b;p=fa-stable.git Small cleanups. --- diff --git a/reporting/rep301.php b/reporting/rep301.php index 04ab84e9..4bd74be3 100644 --- a/reporting/rep301.php +++ b/reporting/rep301.php @@ -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']; diff --git a/reporting/rep304.php b/reporting/rep304.php index 624dabea..f40d8e56 100644 --- a/reporting/rep304.php +++ b/reporting/rep304.php @@ -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; diff --git a/reporting/rep601.php b/reporting/rep601.php index 42c9ef30..1d47bc78 100644 --- a/reporting/rep601.php +++ b/reporting/rep601.php @@ -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)) {