+
+
+
{netCents > 0 ? 'Is owed' : netCents < 0 ? 'Owes' : 'Settled'}{formatMoney(Math.abs(netCents))}
+
+
+ {['all', 'Purchases', 'Bills', 'Payments', 'Penalties'].map(option => )}
+
+
+ {visible.map(row =>
+
{row.kind} · {row.date.slice(0, 10)}{row.title}{row.detail}
{row.status &&
{row.status}
}
+
{formatMoney(row.amount, true)}
+
)}
+ {!visible.length &&
No {filter === 'all' ? 'activity' : filter.toLowerCase()} yet.
}
+
+ {remainder !== 0 && Other ledger adjustments
Balance entries outside the activity shown above{formatMoney(remainder, true)}
}
+ Pending and rejected payments do not change the balance. Upcoming bills count when their month begins.
+
+}
diff --git a/src/components/MoneyDashboard.tsx b/src/components/MoneyDashboard.tsx
index 3d38409..0736160 100644
--- a/src/components/MoneyDashboard.tsx
+++ b/src/components/MoneyDashboard.tsx
@@ -1,4 +1,5 @@
import { PurchaseDetails } from './PurchaseDetails'
+import { MemberMoneyDetails } from './MemberMoneyDetails'
import { ShareBar, SharePeek } from './ShareBreakdown'
import { billBalanceAdjustments, billBreakdown, expenseBreakdown } from '../lib/shares'
import { useMemo, useState } from 'react'
@@ -163,6 +164,7 @@ export function MoneyDashboard({
openReceipt,
} = useAppData()
const [detailId, setDetailId] = useState