mirror of
https://github.com/bigcapitalhq/bigcapital.git
synced 2026-02-19 14:20:31 +00:00
27 lines
655 B
TypeScript
27 lines
655 B
TypeScript
import { Inject, Service } from 'typedi';
|
|
import { IAgingSummaryMeta, IAgingSummaryQuery } from '@/interfaces';
|
|
import { AgingSummaryMeta } from './AgingSummaryMeta';
|
|
|
|
@Service()
|
|
export class APAgingSummaryMeta {
|
|
@Inject()
|
|
private agingSummaryMeta: AgingSummaryMeta;
|
|
|
|
/**
|
|
* Retrieve the aging summary meta.
|
|
* @param {number} tenantId -
|
|
* @returns {IBalanceSheetMeta}
|
|
*/
|
|
public async meta(
|
|
tenantId: number,
|
|
query: IAgingSummaryQuery
|
|
): Promise<IAgingSummaryMeta> {
|
|
const commonMeta = await this.agingSummaryMeta.meta(tenantId, query);
|
|
|
|
return {
|
|
...commonMeta,
|
|
sheetName: 'A/P Aging Summary',
|
|
};
|
|
}
|
|
}
|