feat(orders): implement order ingestion pipeline, review ratings schema, and [Family] exclusion
This commit is contained in:
@@ -267,7 +267,9 @@ export default function AnalyticsPage() {
|
||||
|
||||
const daily: Record<number, number> = {};
|
||||
(monthTxData?.data ?? [])
|
||||
.filter((tx) => tx.transaction_type === "debit" && !["transfers", "investment"].includes(tx.effective_category))
|
||||
.filter((tx) => tx.transaction_type === "debit" &&
|
||||
!["transfers", "investment"].includes(tx.effective_category) &&
|
||||
!tx.tags?.some((t: any) => (typeof t === "string" ? t : t.name) === "family"))
|
||||
.forEach((tx) => {
|
||||
const day = new Date(tx.transaction_date).getDate();
|
||||
daily[day] = (daily[day] || 0) + Number(tx.amount_aud ?? tx.amount);
|
||||
|
||||
Reference in New Issue
Block a user