Files
bigcapital/server/src/interfaces/Account.ts
Ahmed Bouhuolia 27ec0e91fa refactoring: retrieve resources fields.
fix: issue in create a new custom view.
2020-10-17 15:00:22 +02:00

42 lines
863 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,
label: string,
normal: string,
rootType: string,
childType: string,
balanceSheet: boolean,
incomeSheet: boolean,
}
export interface IAccountsTypesService {
getAccountsTypes(tenantId: number): Promise<IAccountType>;
}