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