diff --git a/src/controllers/05-quotation-controller.ts b/src/controllers/05-quotation-controller.ts index 2b41111..02d16e8 100644 --- a/src/controllers/05-quotation-controller.ts +++ b/src/controllers/05-quotation-controller.ts @@ -183,7 +183,7 @@ export class QuotationController extends Controller { @Query() query = "", ) { const where = { - OR: [{ code: { contains: query, mode: "insensitive" } }], + OR: [{ code: { contains: query, mode: "insensitive" } }, { workName: { contains: query } }], payCondition, registeredBranch: isSystem(req.user) ? undefined : { OR: permissionCond(req.user) }, } satisfies Prisma.QuotationWhereInput;