diff --git a/src/pages/accounting/lib/ownerLedger.ts b/src/pages/accounting/lib/ownerLedger.ts index 16ae243..38e1e6b 100644 --- a/src/pages/accounting/lib/ownerLedger.ts +++ b/src/pages/accounting/lib/ownerLedger.ts @@ -49,6 +49,7 @@ export async function fetchOwnerLedger(associationId: string, asOf: string): Pro .from("owner_ledger_entries") .select("unit_id, owner_id, date, transaction_type, debit, credit") .eq("association_id", associationId) + .not("is_archived", "is", true) .lte("date", asOf) .order("id", { ascending: true }) .range(offset, offset + PAGE - 1);