feat: export reports csv and xlsx (#286)

This commit is contained in:
Ahmed Bouhuolia
2023-11-28 19:53:13 +02:00
committed by GitHub
parent 151aff4c8e
commit d15c5890ed
125 changed files with 4674 additions and 934 deletions

View File

@@ -87,10 +87,6 @@ export default class SalesByItemsReportService {
...this.defaultQuery,
...query,
};
this.logger.info('[sales_by_items] trying to calculate the report.', {
filter,
tenantId,
});
// Inventory items for sales report.
const inventoryItems = await Item.query().onBuild((q) => {
q.where('type', 'inventory');