X-Git-Url: https://delta.frontaccounting.com/gitweb/?p=fa-stable.git;a=blobdiff_plain;f=admin%2Fattachments.php;fp=admin%2Fattachments.php;h=d2895d139d768d58e669aab22e01dcb681693a9c;hp=90d9da9dcdfd2e7c73d9734311d8a919991e9379;hb=3331ec7af8426899cdb765c98d96563d4b583193;hpb=0f465ad5e73c6683a5102bde63821a6f6a1c3f3a diff --git a/admin/attachments.php b/admin/attachments.php index 90d9da9d..d2895d13 100644 --- a/admin/attachments.php +++ b/admin/attachments.php @@ -192,8 +192,10 @@ function viewing_controls() } elseif(get_post('filterType') == ST_FIXEDASSET){ stock_items_list_cells(_("Select an Item: "), 'trans_no', null, false, true,false, false, array('fixed_asset' => 1)); + } elseif(get_post('filterType') == ST_BANKACCOUNT){ + bank_accounts_list_cells(_("Select a Bank Account: "), 'trans_no', null, true); } - + end_row(); end_table(1); @@ -202,7 +204,7 @@ function viewing_controls() function trans_view($trans) { if ($trans['type_no']==ST_SUPPLIER || $trans['type_no']==ST_CUSTOMER || $trans['type_no']==ST_ITEM || - $trans['type_no']==ST_FIXEDASSET) + $trans['type_no']==ST_FIXEDASSET || $trans['type_no']==ST_BANKACCOUNT) return $trans['id']; return get_trans_view_str($trans["type_no"], $trans["trans_no"]); } @@ -229,7 +231,7 @@ function delete_link($row) function display_rows($type, $trans_no) { - $sql = get_sql_for_attached_documents($type, $type==ST_SUPPLIER || $type==ST_CUSTOMER ? $trans_no : + $sql = get_sql_for_attached_documents($type, $type==ST_SUPPLIER || $type==ST_CUSTOMER || $type==ST_BANKACCOUNT ? $trans_no : ($type==ST_ITEM || $type==ST_FIXEDASSET ? get_item_code_id($trans_no) : 0)); $cols = array( _("#") => array('fun'=>'trans_view', 'ord'=>''), @@ -276,13 +278,13 @@ if ($selected_id != -1) $_POST['description'] = $row["description"]; hidden('trans_no', $row['trans_no']); hidden('unique_name', $row['unique_name']); - if ($type != ST_SUPPLIER && $type != ST_CUSTOMER && $type != ST_ITEM) + if ($type != ST_SUPPLIER && $type != ST_CUSTOMER && $type != ST_ITEM && $type != ST_BANKACCOUNT) label_row(_("Transaction #"), $row['trans_no']); } hidden('selected_id', $selected_id); } else { - if ($type != ST_SUPPLIER && $type != ST_CUSTOMER && $type != ST_ITEM && $type != ST_FIXEDASSET) + if ($type != ST_SUPPLIER && $type != ST_CUSTOMER && $type != ST_ITEM && $type != ST_FIXEDASSET && $type != ST_BANKACCOUNT) text_row_ex(_("Transaction #").':', 'trans_no', 10); } text_row_ex(_("Doc Title").':', 'description', 40);