feat: remove customerName add reportDate
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
All checks were successful
Spell Check / Spell Check with Typos (push) Successful in 5s
This commit is contained in:
parent
a61bd8c83e
commit
50fca4d540
10 changed files with 31 additions and 22 deletions
|
|
@ -85,7 +85,6 @@ export type CustomerCreate = {
|
|||
authorizedCapital?: string;
|
||||
authorizedName?: string;
|
||||
authorizedNameEN?: string;
|
||||
customerName?: string;
|
||||
|
||||
telephoneNo: string;
|
||||
|
||||
|
|
@ -109,7 +108,7 @@ export type CustomerCreate = {
|
|||
contactName: string;
|
||||
agentUserId?: string;
|
||||
|
||||
businessType: string;
|
||||
businessTypeId?: string | null;
|
||||
jobPosition: string;
|
||||
jobDescription: string;
|
||||
payDate: string;
|
||||
|
|
@ -174,7 +173,6 @@ export class CustomerController extends Controller {
|
|||
const where = {
|
||||
OR: queryOrNot<Prisma.CustomerWhereInput[]>(query, [
|
||||
{ branch: { some: { namePrefix: { contains: query, mode: "insensitive" } } } },
|
||||
{ branch: { some: { customerName: { contains: query, mode: "insensitive" } } } },
|
||||
{ branch: { some: { registerName: { contains: query, mode: "insensitive" } } } },
|
||||
{ branch: { some: { registerNameEN: { contains: query, mode: "insensitive" } } } },
|
||||
{ branch: { some: { firstName: { contains: query, mode: "insensitive" } } } },
|
||||
|
|
@ -220,6 +218,7 @@ export class CustomerController extends Controller {
|
|||
},
|
||||
createdBy: true,
|
||||
updatedBy: true,
|
||||
// businessType:true
|
||||
},
|
||||
orderBy: [{ statusOrder: "asc" }, { createdAt: "asc" }],
|
||||
where,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue