added basic filtering

This commit is contained in:
2026-05-10 19:46:32 +05:30
parent 77b60ba073
commit 3ef71275a8
3 changed files with 111 additions and 9 deletions

View File

@@ -7,6 +7,14 @@ export interface ReportParams {
group_by?: ("payee" | "tags")[];
ignore_self?: boolean;
include_transactions?: boolean;
start_date?: string;
end_date?: string;
flow?: "expense" | "income";
payee?: string[];
account?: string[];
tags?: string[];
min_amount?: number;
max_amount?: number;
}
export function useReport(params: ReportParams) {