feat: add param for request list scope quotation
This commit is contained in:
parent
083c8fcc02
commit
9426a6b3ba
1 changed files with 2 additions and 0 deletions
|
|
@ -72,6 +72,7 @@ export class RequestDataController extends Controller {
|
|||
@Query() pageSize: number = 30,
|
||||
@Query() query: string = "",
|
||||
@Query() requestDataStatus?: RequestDataStatus,
|
||||
@Query() quotationId?: string,
|
||||
) {
|
||||
const where = {
|
||||
OR: queryOrNot<Prisma.RequestDataWhereInput[]>(query, [
|
||||
|
|
@ -108,6 +109,7 @@ export class RequestDataController extends Controller {
|
|||
]),
|
||||
requestDataStatus,
|
||||
quotation: {
|
||||
id: quotationId,
|
||||
customerBranch: {
|
||||
customer: {
|
||||
registeredBranch: { OR: permissionCond(req.user) },
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue