mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
cc493e9fb1
- list type report eg GL almost done
31 lines
817 B
TypeScript
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;
|
|
}
|