Owner Ledger notes: hide internal notes from homeowner-facing views

Exclude transaction_type 'note' from the homeowner ledger and statements
pages so internal staff notes aren't shown to owners.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-06-07 15:16:53 -04:00
parent f53a0aaf46
commit e641b05a91
2 changed files with 2 additions and 0 deletions
@@ -45,6 +45,7 @@ export default function HomeownerLedgerPage() {
.from("owner_ledger_entries")
.select("*")
.eq("is_archived", false)
.neq("transaction_type", "note") // internal staff notes are not shown to owners
.order("date", { ascending: false });
const [ledgerRes, ownersRes] = await Promise.all([
@@ -41,6 +41,7 @@ export default function HomeownerStatementsPage() {
const ledgerQuery = supabase
.from("owner_ledger_entries")
.select("id, date, created_at, description, transaction_type, debit, credit")
.neq("transaction_type", "note") // internal staff notes are not shown to owners
.order("date", { ascending: true })
.order("created_at", { ascending: true });