Files
bigcapital/server/src/interfaces/Account.ts
2020-09-30 11:45:25 +02:00

41 lines
846 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 {
name: string,
slug: string,
code: string,
description: string,
accountTypeId: number,
parentAccountId: number,
active: boolean,
predefined: boolean,
amount: number,
currencyCode: string,
};
export interface IAccountsFilter extends IDynamicListFilterDTO {
stringifiedFilterRoles?: string,
};
export interface IAccountType {
id: number,
key: string,
normal: string,
rootType: string,
childType: string,
balanceSheet: boolean,
incomeSheet: boolean,
}
export interface IAccountsTypesService {
getAccountsTypes(tenantId: number): Promise<IAccountType>;
}