feat(server): sales by items table

This commit is contained in:
Ahmed Bouhuolia
2024-01-17 18:49:38 +02:00
parent 74fd76ce77
commit 4a920176f4
3 changed files with 75 additions and 27 deletions

View File

@@ -24,6 +24,7 @@ export class SalesByItemsApplication {
public sheet(tenantId: number, filter: ISalesByItemsReportQuery) {
return this.salesByItemsSheet.salesByItems(tenantId, filter);
}
/**
* Retrieves the sales by items report in table format.
* @param {number} tenantId
@@ -33,6 +34,7 @@ export class SalesByItemsApplication {
public table(tenantId: number, filter: ISalesByItemsReportQuery) {
return this.salesByItemsTable.table(tenantId, filter);
}
/**
* Retrieves the sales by items report in csv format.
* @param {number} tenantId
@@ -42,6 +44,7 @@ export class SalesByItemsApplication {
public csv(tenantId: number, filter: ISalesByItemsReportQuery) {
return this.salesByItemsExport.csv(tenantId, filter);
}
/**
* Retrieves the sales by items report in xlsx format.
* @param {number} tenantId