mirror of
https://github.com/renee-png/acmcc.git
synced 2026-06-21 01:40:01 +00:00
Banking: allow editing reconciled transactions (with warning)
Reconciled items were hard-blocked from editing. Replace the block with a confirmation warning that editing may unbalance the completed reconciliation. The edit save preserves reconciliation_id, so the item stays reconciled. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@@ -507,7 +507,7 @@ export default function AccountingBankingPage() {
|
||||
};
|
||||
|
||||
const openEdit = (tx: any) => {
|
||||
if (tx.reconciliation_id) return toast.error("Reconciled transactions can't be edited");
|
||||
if (tx.reconciliation_id && !confirm("This transaction is part of a completed reconciliation. Editing it may cause that reconciliation to no longer balance. Continue?")) return;
|
||||
setEditId(tx.id);
|
||||
setTxForm({
|
||||
account_id: tx.account_id ?? activeAccountId,
|
||||
|
||||
Reference in New Issue
Block a user