mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-17 13:20:31 +00:00
33 lines
1.0 KiB
TypeScript
33 lines
1.0 KiB
TypeScript
// import { Inject, Service } from 'typedi';
|
|
// import { AccountsApplication } from './AccountsApplication.service';
|
|
// import { Exportable } from '../Export/Exportable';
|
|
// import { IAccountsFilter, IAccountsStructureType } from '@/interfaces';
|
|
// import { EXPORT_SIZE_LIMIT } from '../Export/constants';
|
|
|
|
// @Service()
|
|
// export class AccountsExportable extends Exportable {
|
|
// @Inject()
|
|
// private accountsApplication: AccountsApplication;
|
|
|
|
// /**
|
|
// * Retrieves the accounts data to exportable sheet.
|
|
// * @param {number} tenantId
|
|
// * @returns
|
|
// */
|
|
// public exportable(tenantId: number, query: IAccountsFilter) {
|
|
// const parsedQuery = {
|
|
// sortOrder: 'desc',
|
|
// columnSortBy: 'created_at',
|
|
// inactiveMode: false,
|
|
// ...query,
|
|
// structure: IAccountsStructureType.Flat,
|
|
// pageSize: EXPORT_SIZE_LIMIT,
|
|
// page: 1,
|
|
// } as IAccountsFilter;
|
|
|
|
// return this.accountsApplication
|
|
// .getAccounts(tenantId, parsedQuery)
|
|
// .then((output) => output.accounts);
|
|
// }
|
|
// }
|