Changes
Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
co-authored by
renee-png
parent
1a2f6b1f13
commit
e55fea1977
@@ -65,7 +65,7 @@ function Dashboard() {
|
||||
myAssigneeRes,
|
||||
openCasesRes, newCasesRes, closedCasesRes,
|
||||
tasksTodayRes, hearingsTodayRes,
|
||||
recentCasesRes, recentInvRes,
|
||||
recentCasesRes, recentInvRes, recentPayRes,
|
||||
] = await Promise.all([
|
||||
supabase.from("trust_ledger_entries").select("entry_type, amount"),
|
||||
supabase.from("invoice_payments").select("amount, paid_on").gte("paid_on", monthStart).lte("paid_on", monthEnd),
|
||||
@@ -78,6 +78,7 @@ function Dashboard() {
|
||||
supabase.from("cases").select("id, title, case_number, next_hearing_date, next_hearing_notes").eq("next_hearing_date", todayStr),
|
||||
supabase.from("cases").select("id, case_number, title, status, updated_at, client:clients(name)").order("updated_at", { ascending: false }).limit(5),
|
||||
supabase.from("invoices").select("id, invoice_number, total, status, issue_date, client:clients(name)").order("created_at", { ascending: false }).limit(5),
|
||||
supabase.from("payment_requests").select("id, recipient_name, description, total_amount_cents, status, created_at, paid_at").order("created_at", { ascending: false }).limit(5),
|
||||
]);
|
||||
|
||||
// Trust balance
|
||||
|
||||
Reference in New Issue
Block a user