feat(server): balance sheet meta

This commit is contained in:
Ahmed Bouhuolia
2024-02-17 00:21:48 +02:00
parent 27fed5f18a
commit 7690789031
10 changed files with 89 additions and 48 deletions

View File

@@ -0,0 +1,23 @@
import { Inject, Service } from 'typedi';
import { FinancialSheetMeta } from '../FinancialSheetMeta';
import { IBalanceSheetMeta } from '@/interfaces';
@Service()
export class BalanceSheetMetaInjectable {
@Inject()
private financialSheetMeta: FinancialSheetMeta;
/**
* Retrieve the balance sheet meta.
* @param {number} tenantId -
* @returns {IBalanceSheetMeta}
*/
public async meta(tenantId: number): Promise<IBalanceSheetMeta> {
const commonMeta = await this.financialSheetMeta.meta(tenantId);
return {
...commonMeta,
sheetName: 'Balance Sheet',
};
}
}