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

@@ -22,12 +22,11 @@ export class BalanceSheetPdfInjectable {
query: IBalanceSheetQuery
): Promise<Buffer> {
const table = await this.balanceSheetTable.table(tenantId, query);
const sheetName = 'Balance Sheet';
return this.tableSheetPdf.convertToPdf(
tenantId,
table.table,
sheetName,
table.meta.sheetName,
table.meta.baseCurrency
);
}