2
0
mirror of https://github.com/frappe/books.git synced 2024-12-23 03:19:01 +00:00
books/reports/types.ts
18alantom cc493e9fb1 incr: start rewriting reports
- list type report eg GL almost done
2022-05-23 16:18:23 +05:30

31 lines
817 B
TypeScript

import { AccountRootType } from 'models/baseModels/Account/types';
import { BaseField } from 'schemas/types';
export type ExportExtension = 'csv' | 'json';
export interface ReportCell {
bold?: boolean;
italics?: boolean;
align?: 'left' | 'right' | 'center';
width?: number;
value: string;
}
export type ReportRow = ReportCell[];
export type ReportData = ReportRow[];
export interface ColumnField extends BaseField {
align?: 'left' | 'right' | 'center';
width?: number;
}
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;
}