feat: search branch by customer code
This commit is contained in:
parent
73265c8965
commit
8a1354ac2b
1 changed files with 5 additions and 0 deletions
|
|
@ -121,6 +121,11 @@ export class CustomerBranchController extends Controller {
|
|||
{ nameEN: { contains: query }, zipCode },
|
||||
{ name: { contains: query }, zipCode },
|
||||
{ email: { contains: query }, zipCode },
|
||||
{
|
||||
customer: {
|
||||
code: { contains: query },
|
||||
},
|
||||
},
|
||||
],
|
||||
AND: { customerId },
|
||||
} satisfies Prisma.CustomerBranchWhereInput;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue