Merge pull request #25 from Frappet/10042025-01
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 6s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 6s
add incomplete in RequestData
This commit is contained in:
commit
1cd292cdf7
1 changed files with 6 additions and 1 deletions
|
|
@ -80,6 +80,7 @@ export class RequestDataController extends Controller {
|
||||||
@Query() requestDataStatus?: RequestDataStatus,
|
@Query() requestDataStatus?: RequestDataStatus,
|
||||||
@Query() quotationId?: string,
|
@Query() quotationId?: string,
|
||||||
@Query() code?: string,
|
@Query() code?: string,
|
||||||
|
@Query() incomplete?: boolean,
|
||||||
) {
|
) {
|
||||||
const where = {
|
const where = {
|
||||||
OR: queryOrNot<Prisma.RequestDataWhereInput[]>(query, [
|
OR: queryOrNot<Prisma.RequestDataWhereInput[]>(query, [
|
||||||
|
|
@ -118,7 +119,11 @@ export class RequestDataController extends Controller {
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
code,
|
code,
|
||||||
requestDataStatus,
|
requestDataStatus: incomplete
|
||||||
|
? {
|
||||||
|
notIn: [RequestDataStatus.Completed, RequestDataStatus.Canceled],
|
||||||
|
}
|
||||||
|
: requestDataStatus,
|
||||||
requestWork: responsibleOnly
|
requestWork: responsibleOnly
|
||||||
? {
|
? {
|
||||||
some: {
|
some: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue