mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-16 04:40:32 +00:00
41 lines
846 B
TypeScript
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>;
|
|
} |