Files
bigcapital/server/src/interfaces/Account.ts
Ahmed Bouhuolia d49992a6d7 refactoring: balance sheet report.
refactoring: trial balance sheet report.
refactoring: general ledger report.
refactoring: journal report.
refactoring: P&L report.
2020-12-10 13:04:49 +02:00

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>;
}