fix: do not include work with parent cancled

This commit is contained in:
Methapon2001 2025-01-09 17:05:20 +07:00
parent 6a86dfd9ad
commit 019c493e7f

View file

@ -334,6 +334,9 @@ export class RequestListController extends Controller {
creditNote: cancelOnly ? null : undefined,
request: {
id: requestDataId,
requestDataStatus: readyToTask
? { notIn: [RequestDataStatus.Canceled, RequestDataStatus.Completed] }
: undefined,
quotationId,
quotation: {
registeredBranch: { OR: permissionCond(req.user) },