2
0
mirror of https://github.com/frappe/books.git synced 2025-01-24 15:48:25 +00:00
books/reports/types.ts

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

24 lines
613 B
TypeScript
Raw Normal View History

import { AccountRootType } from 'models/baseModels/Account/types';
export type ExportExtension = 'csv' | 'json';
export interface ReportData {
rows: unknown[];
columns: unknown[];
}
export abstract class Report {
abstract run(filters: Record<string, unknown>): ReportData;
}
export type BalanceType = 'Credit' | 'Debit';
export type Periodicity = 'Monthly' | 'Quarterly' | 'Half Yearly' | 'Yearly';
export interface FinancialStatementOptions {
rootType: AccountRootType;
fromDate: string;
toDate: string;
balanceMustBe?: BalanceType;
periodicity?: Periodicity;
accumulateValues?: boolean;
}