From f063d05ae0b5216f21adcd119859af44fcf9490a Mon Sep 17 00:00:00 2001 From: renee-png Date: Sat, 20 Jun 2026 15:57:00 -0400 Subject: [PATCH] Reconciliation: set cleared=false on transfer far leg (NOT NULL fix) The far-account transfer leg omitted cleared, violating the column's not-null constraint. Default it to false; the near leg stays cleared=true. Co-Authored-By: Claude Opus 4.8 --- src/pages/accounting/AccountingReconcileDetailPage.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/accounting/AccountingReconcileDetailPage.tsx b/src/pages/accounting/AccountingReconcileDetailPage.tsx index ca3f8ce..67d086a 100644 --- a/src/pages/accounting/AccountingReconcileDetailPage.tsx +++ b/src/pages/accounting/AccountingReconcileDetailPage.tsx @@ -500,7 +500,7 @@ export default function AccountingReconcileDetailPage() { { company_id: cid, account_id: transfer.other_account_id, date: transfer.date, type: otherType, amount: amt, description: `Transfer ${transfer.direction === "out" ? "from" : "to"} ${thisName}${memo ? ` — ${memo}` : ""}`, - category: "Transfer", transfer_id: transferId, + category: "Transfer", transfer_id: transferId, cleared: false, }, ]; const { data, error } = await accounting.from("transactions").insert(rows).select("id,account_id");