fix: stats will only take non canceled status
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 3s

This commit is contained in:
Methapon2001 2025-08-04 09:01:56 +07:00
parent f162081370
commit c9939bf8bb

View file

@ -631,7 +631,7 @@ export class StatsController extends Controller {
createdAt: { gte: v, lte: date.endOf("month").toDate() },
invoice: {
quotation: {
NOT: { quotationStatus: QuotationStatus.Canceled },
quotationStatus: { notIn: [QuotationStatus.Canceled] },
registeredBranch: { OR: permissionCondCompany(req.user) },
},
},