Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 01:41:55 +00:00
co-authored by renee-png
parent 05550e1191
commit 4ab142e60e
8 changed files with 49 additions and 4 deletions
@@ -50,7 +50,7 @@ export function GenerateInvoiceDialog({ open, onOpenChange, clientId, clientName
(async () => {
setLoading(true);
const [{ data: cs }, { data: firm }] = await Promise.all([
supabase.from("cases").select("id, case_number, title").eq("client_id", clientId),
supabase.from("cases").select("id, case_number, title").eq("client_id", clientId).is("archived_at", null),
supabase.from("firm_settings").select("default_tax_rate").maybeSingle(),
]);
const caseIds = (cs ?? []).map((c) => c.id);