diff --git a/src/routes/invoices.index.tsx b/src/routes/invoices.index.tsx index a9ff543..37503ea 100644 --- a/src/routes/invoices.index.tsx +++ b/src/routes/invoices.index.tsx @@ -299,9 +299,32 @@ function InvoicesIndex() { + {selectedInvoices.size > 0 && ( +
+ {selectedInvoices.size} selected +
+ + + + +
+
+ )} + @@ -312,9 +335,9 @@ function InvoicesIndex() { - {loading && } + {loading && } {!loading && filtered.length === 0 && ( - @@ -323,6 +346,12 @@ function InvoicesIndex() { const balance = Number(i.total) - Number(i.amount_paid); return ( +
+ 0 && selectedInvoices.size === filtered.length} + onCheckedChange={(c) => setSelectedInvoices(c ? new Set(filtered.map((i) => i.id)) : new Set())} + /> + Invoice # Client Issued
Loading…
Loading…
+
No invoices yet. Click New invoice to generate one.
e.stopPropagation()}> + setSelectedInvoices((s) => toggleSel(s, i.id))} + /> + {i.invoice_number}