Merging latest changes from stable branch up to 2.3.24
[fa-stable.git] / reporting / rep602.php
index 79b3387b3a1dbea64463eae9021c41e4c730947a..5c9b324ff5c6ca3523f0d3f83bc58dccf3375312 100644 (file)
@@ -108,11 +108,11 @@ function print_bank_transactions_reconcile()
                $rep->Font();
                $total = $prev_balance;
                $rep->NewLine(2);
+               // Keep a running total as we loop through
+               // the transactions.
+               $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))
                        {
@@ -217,4 +217,3 @@ function print_bank_transactions_reconcile()
        $rep->End();
 }
 
-?>
\ No newline at end of file