diff --git a/accounts.php b/accounts.php
index 511f8693..25b4a4fd 100644
--- a/accounts.php
+++ b/accounts.php
@@ -13,6 +13,7 @@ $sql = mysqli_query(
$mysqli,
"SELECT SQL_CALC_FOUND_ROWS * FROM accounts
WHERE account_name LIKE '%$q%'
+ AND account_archived_at IS NULL
ORDER BY $sort $order LIMIT $record_from, $record_to"
);
@@ -85,7 +86,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
Edit
-
+
Archive
diff --git a/dashboard_financial.php b/dashboard_financial.php
index 50e4a902..e84ea52f 100644
--- a/dashboard_financial.php
+++ b/dashboard_financial.php
@@ -59,7 +59,7 @@ $receivables = $invoice_totals_all_years - $total_payments_to_invoices_all_years
$profit = $total_income - $total_expenses;
-$sql_accounts = mysqli_query($mysqli, "SELECT * FROM accounts");
+$sql_accounts = mysqli_query($mysqli, "SELECT * FROM accounts WHERE account_archived_at IS NULL ORDER BY account_name ASC");
$sql_latest_invoice_payments = mysqli_query(
$mysqli,
diff --git a/expense_copy_modal.php b/expense_copy_modal.php
index ac82941b..3e1e2aef 100644
--- a/expense_copy_modal.php
+++ b/expense_copy_modal.php
@@ -44,7 +44,7 @@