Implemented attachments for Bank Account, and redesign of Bank Accounts to a tabbed...
[fa-stable.git] / gl / inquiry / bank_inquiry.php
index e273099db7fa6dc721723df38cc0b9b2493050ad..d17716d694fa5db85604a91d1c57c4631289aa0f 100644 (file)
@@ -45,12 +45,13 @@ if (isset($_GET['bank_account']))
 start_form();
 start_table(TABLESTYLE_NOBORDER);
 start_row();
-bank_accounts_list_cells(_("Account:"), 'bank_account', null);
+if (!$page_nested)
+       bank_accounts_list_cells(_("Account:"), 'bank_account', null);
 
 date_cells(_("From:"), 'TransAfterDate', '', null, -user_transaction_days());
 date_cells(_("To:"), 'TransToDate');
 
-submit_cells('Show',_("Show"),'','', 'default');
+submit_cells('Show',_("Show"),'', '', 'default');
 end_row();
 end_table();
 end_form();
@@ -63,8 +64,11 @@ if (!isset($_POST['bank_account']))
 $result = get_bank_trans_for_bank_account($_POST['bank_account'], $_POST['TransAfterDate'], $_POST['TransToDate']);    
 
 div_start('trans_tbl');
-$act = get_bank_account($_POST["bank_account"]);
-display_heading($act['bank_account_name']." - ".$act['bank_curr_code']);
+if (!$page_nested)
+{
+       $act = get_bank_account($_POST["bank_account"]);
+       display_heading($act['bank_account_name']." - ".$act['bank_curr_code']);
+}
 
 start_table(TABLESTYLE);
 
@@ -108,8 +112,8 @@ while ($myrow = db_fetch($result))
 
        label_cell(get_comments_string($myrow["type"], $myrow["trans_no"]));
        label_cell(get_gl_view_str($myrow["type"], $myrow["trans_no"]));
-
-       label_cell(trans_editor_link($myrow["type"], $myrow["trans_no"]));
+       if (!$page_nested)
+               label_cell(trans_editor_link($myrow["type"], $myrow["trans_no"]));
 
        end_row();
        if ($myrow["amount"] > 0 )