2
0
mirror of https://github.com/frappe/books.git synced 2024-11-10 07:40:55 +00:00
books/reports/types.ts

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

31 lines
817 B
TypeScript
Raw Normal View History

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