fix: stats will only take non canceled status
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 3s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 3s
This commit is contained in:
parent
f162081370
commit
c9939bf8bb
1 changed files with 1 additions and 1 deletions
|
|
@ -631,7 +631,7 @@ export class StatsController extends Controller {
|
||||||
createdAt: { gte: v, lte: date.endOf("month").toDate() },
|
createdAt: { gte: v, lte: date.endOf("month").toDate() },
|
||||||
invoice: {
|
invoice: {
|
||||||
quotation: {
|
quotation: {
|
||||||
NOT: { quotationStatus: QuotationStatus.Canceled },
|
quotationStatus: { notIn: [QuotationStatus.Canceled] },
|
||||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue