Bug 4817: g/l account inquiry can timeout due to slow sql. @Braath Waate.
[fa-stable.git] / gl / view / bank_transfer_view.php
index 3ae52d961c102edf709e62a37100106d0192a026..a800f9a35a8e3e5a688f6ac6daff75f6c8ccbc6d 100644 (file)
@@ -14,7 +14,7 @@ $path_to_root="../..";
 
 include($path_to_root . "/includes/session.inc");
 
-page(_("View Bank Transfer"), true);
+page(_($help_context = "View Bank Transfer"), true);
 
 include_once($path_to_root . "/includes/date_functions.inc");
 include_once($path_to_root . "/includes/ui.inc");
@@ -28,7 +28,7 @@ if (isset($_GET["trans_no"])){
 $result = get_bank_trans(ST_BANKTRANSFER, $trans_no);
 
 if (db_num_rows($result) != 2)
-       display_db_error("Bank transfer does not contain two records", $sql);
+       display_db_error("Bank transfer does not contain two records");
 
 $trans1 = db_fetch($result);
 $trans2 = db_fetch($result);
@@ -61,7 +61,7 @@ if ($from_trans['bank_curr_code'] != $to_trans['bank_curr_code'])
 display_heading($systypes_array[ST_BANKTRANSFER] . " #$trans_no");
 
 echo "<br>";
-start_table("$table_style width=80%");
+start_table(TABLESTYLE, "width='80%'");
 
 start_row();
 label_cells(_("From Bank Account"), $from_trans['bank_account_name'], "class='tableheader2'");
@@ -91,5 +91,4 @@ end_table(1);
 
 is_voided_display(ST_BANKTRANSFER, $trans_no, _("This transfer has been voided."));
 
-end_page(true);
-?>
\ No newline at end of file
+end_page(true, false, false, ST_BANKTRANSFER, $trans_no);