From c91d6125a47d7fcc297f9502a7d9201d004b64ec Mon Sep 17 00:00:00 2001 From: Catherine Renelle <32781029+catrenelle@users.noreply.github.com> Date: Fri, 13 Feb 2026 21:22:49 -0500 Subject: [PATCH] Preserve transaction status when editing instead of resetting to Uncleared Adds a Status select to the add/edit transaction dialog that defaults to the current value when editing, so cleared transactions stay cleared. Co-Authored-By: Claude Opus 4.6 --- frontend/src/views/transactions/TransactionsView.vue | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/frontend/src/views/transactions/TransactionsView.vue b/frontend/src/views/transactions/TransactionsView.vue index e632476..4d5514a 100644 --- a/frontend/src/views/transactions/TransactionsView.vue +++ b/frontend/src/views/transactions/TransactionsView.vue @@ -126,6 +126,7 @@ /> + @@ -290,7 +291,8 @@ const txnForm = ref({ payeeName: '', categoryId: null as string | null, memo: '', - checkNumber: '' + checkNumber: '', + status: 'Uncleared' }) const transferForm = ref({ fromAccountId: '', toAccountId: '', date: new Date().toISOString().split('T')[0], amount: 0, memo: '' }) @@ -383,7 +385,8 @@ function openAddDialog() { payeeName: '', categoryId: null, memo: '', - checkNumber: '' + checkNumber: '', + status: 'Uncleared' } useSplits.value = false splits.value = [] @@ -401,7 +404,8 @@ function editTransaction(txn: Transaction) { payeeName: txn.payeeName || '', categoryId: txn.categoryId, memo: txn.memo || '', - checkNumber: txn.checkNumber || '' + checkNumber: txn.checkNumber || '', + status: txn.status || 'Uncleared' } if (txn.splits && txn.splits.length > 1) { useSplits.value = true @@ -426,7 +430,7 @@ async function saveTxn() { const payload: any = { ...txnForm.value, amount, - status: 'Uncleared', + status: txnForm.value.status, splits: null }