fix: dashboard payment now taken cancled into account
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 4s

This commit is contained in:
Methapon2001 2025-08-01 10:58:04 +07:00
parent dfe7bd16d8
commit f162081370

View file

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