mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 12:50:38 +00:00
refactoring: trial balance sheet report. refactoring: general ledger report. refactoring: journal report. refactoring: P&L report.
46 lines
934 B
TypeScript
46 lines
934 B
TypeScript
import { IDynamicListFilterDTO } from 'interfaces/DynamicFilter';
|
|
|
|
export interface IAccountDTO {
|
|
name: string,
|
|
code: string,
|
|
description: string,
|
|
accountTypeId: number,
|
|
parentAccountId: number,
|
|
active: boolean,
|
|
};
|
|
|
|
export interface IAccount {
|
|
id: number,
|
|
name: string,
|
|
slug: string,
|
|
code: string,
|
|
index: number,
|
|
description: string,
|
|
accountTypeId: number,
|
|
parentAccountId: number,
|
|
active: boolean,
|
|
predefined: boolean,
|
|
amount: number,
|
|
currencyCode: string,
|
|
transactions?: any[],
|
|
type?: any[],
|
|
};
|
|
|
|
export interface IAccountsFilter extends IDynamicListFilterDTO {
|
|
stringifiedFilterRoles?: string,
|
|
};
|
|
|
|
export interface IAccountType {
|
|
id: number,
|
|
key: string,
|
|
label: string,
|
|
normal: string,
|
|
rootType: string,
|
|
childType: string,
|
|
balanceSheet: boolean,
|
|
incomeSheet: boolean,
|
|
}
|
|
|
|
export interface IAccountsTypesService {
|
|
getAccountsTypes(tenantId: number): Promise<IAccountType>;
|
|
} |