fix: report not scope registered branch
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
c004c516c6
commit
ffa8095dcc
1 changed files with 3 additions and 0 deletions
|
|
@ -153,6 +153,9 @@ export class StatsController extends Controller {
|
||||||
_count: true,
|
_count: true,
|
||||||
by: "productId",
|
by: "productId",
|
||||||
where: {
|
where: {
|
||||||
|
quotation: {
|
||||||
|
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||||
|
},
|
||||||
productId: { in: record.map((v) => v.id) },
|
productId: { in: record.map((v) => v.id) },
|
||||||
requestWork: {
|
requestWork: {
|
||||||
some: {
|
some: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue