X-Git-Url: https://delta.frontaccounting.com/gitweb/?a=blobdiff_plain;f=gl%2Finquiry%2Fgl_account_inquiry.php;h=668a61deefc533dc8f13f4f283f5dc445ee1cfb8;hb=87f8a820c2f4c7861c2f8019b4cfb8eef58e85b5;hp=e91a59b2d985f1f5905e57b1bf2986b8929c0ae8;hpb=1a2a0326b84927ccaaf01b52f0d3e97d7b782f47;p=fa-stable.git diff --git a/gl/inquiry/gl_account_inquiry.php b/gl/inquiry/gl_account_inquiry.php index e91a59b2..668a61de 100644 --- a/gl/inquiry/gl_account_inquiry.php +++ b/gl/inquiry/gl_account_inquiry.php @@ -21,6 +21,12 @@ if ($use_date_picker) page(_("General Ledger Account Inquiry"), false, false, '', $js); //---------------------------------------------------------------------------------------------------- +// Ajax updates +// +if (get_post('Show')) +{ + $Ajax->activate('trans_tbl'); +} if (isset($_GET["account"])) $_POST["account"] = $_GET["account"]; @@ -48,9 +54,9 @@ function gl_inquiry_controls() gl_all_accounts_list_cells(_("Account:"), 'account', null); - date_cells(_("from:"), 'TransFromDate', null, -30); + date_cells(_("from:"), 'TransFromDate', '', null, -30); date_cells(_("to:"), 'TransToDate'); - submit_cells('Show',_("Show")); + submit_cells('Show',_("Show"),'','', true); end_row(); @@ -83,6 +89,7 @@ function show_results() $_POST["account"], $_POST['Dimension'], $_POST['Dimension2']); $colspan = ($dim == 2 ? "6" : ($dim == 1 ? "5" : "4")); + div_start('trans_tbl'); //echo "\nDimension =". $_POST['Dimension']; display_heading($_POST["account"]. "   ".$act_name); @@ -159,6 +166,7 @@ function show_results() end_table(2); if (db_num_rows($result) == 0) display_note(_("No general ledger transactions have been created for this account on the selected dates."), 0, 1); + div_end(); } //----------------------------------------------------------------------------------------------------