X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fbank_inquiry.php;h=f6ffdba757a156d37ee6bb207f94a5ac2e18ff54;hb=4d5c386a745f07e2f937c5a3fcfffdb431551cc5;hp=d45570c95fbd59e010b8ae9ece5e377b9cf6dfb3;hpb=c09be0dad6b05131e240349a375af7a4b7bf3444;p=fa-stable.git diff --git a/gl/inquiry/bank_inquiry.php b/gl/inquiry/bank_inquiry.php index d45570c9..f6ffdba7 100644 --- a/gl/inquiry/bank_inquiry.php +++ b/gl/inquiry/bank_inquiry.php @@ -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++; }