From 347c0a790693031fdd3b32792b5b6792693d1805 Mon Sep 17 00:00:00 2001 From: Akshay Birajdar Date: Tue, 22 Jul 2025 15:51:00 +0530 Subject: [PATCH] feat: Only show active accounts for transaction form (#2484) --- app/views/transactions/_form.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/transactions/_form.html.erb b/app/views/transactions/_form.html.erb index 46fd4ac1..3760f7dd 100644 --- a/app/views/transactions/_form.html.erb +++ b/app/views/transactions/_form.html.erb @@ -18,7 +18,7 @@ <% if @entry.account_id %> <%= f.hidden_field :account_id %> <% else %> - <%= f.collection_select :account_id, Current.family.accounts.manual.alphabetically, :id, :name, { prompt: t(".account_prompt"), label: t(".account") }, required: true, class: "form-field__input text-ellipsis" %> + <%= f.collection_select :account_id, Current.family.accounts.manual.active.alphabetically, :id, :name, { prompt: t(".account_prompt"), label: t(".account") }, required: true, class: "form-field__input text-ellipsis" %> <% end %> <%= f.money_field :amount, label: t(".amount"), required: true %>