projects
/
fa-stable.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fixed 0000036,0000039 and some smaller bugs.
[fa-stable.git]
/
gl
/
inquiry
/
bank_inquiry.php
diff --git
a/gl/inquiry/bank_inquiry.php
b/gl/inquiry/bank_inquiry.php
index 1ff071592c037c7d3c9564742426ca35a2ab5ed4..d45570c95fbd59e010b8ae9ece5e377b9cf6dfb3 100644
(file)
--- a/
gl/inquiry/bank_inquiry.php
+++ b/
gl/inquiry/bank_inquiry.php
@@
-14,22
+14,30
@@
include_once($path_to_root . "/includes/banking.inc");
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
$js = "";
if ($use_popup_windows)
$js .= get_js_open_window(800, 500);
+if ($use_date_picker)
+ $js .= get_js_date_picker();
page(_("Bank Statement"), false, false, "", $js);
check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
page(_("Bank Statement"), false, false, "", $js);
check_db_has_bank_accounts(_("There are no bank accounts defined in the system."));
+//-----------------------------------------------------------------------------------
+// Ajax updates
+//
+if (get_post('Show'))
+{
+ $Ajax->activate('trans_tbl');
+}
//------------------------------------------------------------------------------------------------
start_form();
//------------------------------------------------------------------------------------------------
start_form();
-
start_table("class='tablestyle_noborder'");
start_row();
bank_accounts_list_cells(_("Account:"), 'bank_account', null);
start_table("class='tablestyle_noborder'");
start_row();
bank_accounts_list_cells(_("Account:"), 'bank_account', null);
-date_cells(_("From:"), 'TransAfterDate', null, -30);
+date_cells(_("From:"), 'TransAfterDate',
'',
null, -30);
date_cells(_("To:"), 'TransToDate');
date_cells(_("To:"), 'TransToDate');
-submit_cells('Show',_("Show"));
+submit_cells('Show',_("Show")
,'','', true
);
end_row();
end_table();
end_form();
end_row();
end_table();
end_form();
@@
-53,6
+61,7
@@
$result = db_query($sql,"The transactions for '" . $_POST['bank_account'] . "' c
$act = get_bank_account($_POST["bank_account"]);
display_heading($act['bank_account_name']." - ".$act['bank_curr_code']);
$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"),
start_table($table_style);
$th = array(_("Type"), _("#"), _("Reference"), _("Type"), _("Date"),
@@
-108,7
+117,7
@@
display_debit_or_credit_cells($running_total);
label_cell("");
end_row();
end_table(2);
label_cell("");
end_row();
end_table(2);
-
+div_end();
//------------------------------------------------------------------------------------------------
end_page();
//------------------------------------------------------------------------------------------------
end_page();