X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fbank_inquiry.php;h=3921f136c401eb4e08b5b061bdbeccce4c4053d7;hb=5c17df61be0c76370e2438f932acca23cd4efa31;hp=65a691fd84ad511b9ce880ab57d4729b1fbecaf8;hpb=46c5f7a65a7659a44ae8254c63152074363d3987;p=fa-stable.git diff --git a/gl/inquiry/bank_inquiry.php b/gl/inquiry/bank_inquiry.php index 65a691fd..3921f136 100644 --- a/gl/inquiry/bank_inquiry.php +++ b/gl/inquiry/bank_inquiry.php @@ -25,7 +25,7 @@ if ($use_popup_windows) $js .= get_js_open_window(800, 500); if ($use_date_picker) $js .= get_js_date_picker(); -page(_($help_context = "Bank Statement"), false, false, "", $js); +page(_($help_context = "Bank Statement"), isset($_GET['bank_account']), false, "", $js); check_db_has_bank_accounts(_("There are no bank accounts defined in the system.")); @@ -38,6 +38,9 @@ if (get_post('Show')) } //------------------------------------------------------------------------------------------------ +if (isset($_GET['bank_account'])) + $_POST['bank_account'] = $_GET['bank_account']; + start_form(); start_table(TABLESTYLE_NOBORDER); start_row(); @@ -65,7 +68,7 @@ display_heading($act['bank_account_name']." - ".$act['bank_curr_code']); start_table(TABLESTYLE); $th = array(_("Type"), _("#"), _("Reference"), _("Date"), - _("Debit"), _("Credit"), _("Balance"), _("Person/Item"), ""); + _("Debit"), _("Credit"), _("Balance"), _("Person/Item"), _("Memo"), ""); table_header($th); $bfw = get_balance_before_for_bank_account($_POST['bank_account'], $_POST['TransAfterDate']); @@ -100,6 +103,7 @@ while ($myrow = db_fetch($result)) display_debit_or_credit_cells($myrow["amount"]); amount_cell($running_total); label_cell(payment_person_name($myrow["person_type_id"],$myrow["person_id"])); + label_cell(get_comments_string($myrow["type"], $myrow["trans_no"])); label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"])); end_row(); if ($myrow["amount"] > 0 )