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,
|
||||
by: "productId",
|
||||
where: {
|
||||
quotation: {
|
||||
registeredBranch: { OR: permissionCondCompany(req.user) },
|
||||
},
|
||||
productId: { in: record.map((v) => v.id) },
|
||||
requestWork: {
|
||||
some: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue