Update screen bug in Bank Account Inquiry.
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 3 Sep 2008 07:09:19 +0000 (07:09 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Wed, 3 Sep 2008 07:09:19 +0000 (07:09 +0000)
CHANGELOG.txt
gl/inquiry/bank_inquiry.php

index 050348e34f5178fb41118c00ba3256c6d8054f95..ea485d1c35077376593dfb25dba6391013d4c46b 100644 (file)
@@ -27,6 +27,8 @@ $ /inventory/includes/db/items_adjust_db.inc
   /purchasing/includes/invoice_db.inc
 # Bug [0000045] Cannot close fiscal year 
 $ /admin/fiscalyears.php
+# Update screen bug in Bank Account Inquiry.
+  $ /gl/inquiry/bank_inquiry.php
 
 02-Sep-2008 Joe Hunt
 # Bug when selecting report, List of Journal Entries, by type. Nothing selected.
index d45570c95fbd59e010b8ae9ece5e377b9cf6dfb3..f6ffdba757a156d37ee6bb207f94a5ac2e18ff54 100644 (file)
@@ -23,7 +23,7 @@ check_db_has_bank_accounts(_("There are no bank accounts defined in the system."
 //-----------------------------------------------------------------------------------
 // Ajax updates
 //
-if (get_post('Show')) 
+if (get_post('Show'))
 {
        $Ajax->activate('trans_tbl');
 }
@@ -58,15 +58,15 @@ $sql = "SELECT ".TB_PREF."bank_trans.*,name AS BankTransType FROM ".TB_PREF."ban
 
 $result = db_query($sql,"The transactions for '" . $_POST['bank_account'] . "' could not be retrieved");
 
+div_start('trans_tbl');
 $act = get_bank_account($_POST["bank_account"]);
 display_heading($act['bank_account_name']." - ".$act['bank_curr_code']);
 
-div_start('trans_tbl');
 start_table($table_style);
 
 $th = array(_("Type"), _("#"), _("Reference"), _("Type"), _("Date"),
        _("Debit"), _("Credit"), _("Balance"), _("Person/Item"), "");
-table_header($th);     
+table_header($th);
 
 $sql = "SELECT SUM(amount) FROM ".TB_PREF."bank_trans WHERE bank_act='" . $_POST['bank_account'] . "'
        AND trans_date < '$date_after'";
@@ -83,7 +83,7 @@ end_row();
 $running_total = $bfw;
 $j = 1;
 $k = 0; //row colour counter
-while ($myrow = db_fetch($result)) 
+while ($myrow = db_fetch($result))
 {
 
        alt_table_row_color($k);
@@ -105,7 +105,7 @@ while ($myrow = db_fetch($result))
        if ($j == 12)
        {
                $j = 1;
-               table_header($th);      
+               table_header($th);
        }
        $j++;
 }