feat: add filter pay invoice
This commit is contained in:
parent
52284c791c
commit
7fae767be5
1 changed files with 2 additions and 0 deletions
|
|
@ -49,6 +49,7 @@ export class InvoiceController extends Controller {
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
@Query() quotationId?: string,
|
@Query() quotationId?: string,
|
||||||
|
@Query() pay?: boolean,
|
||||||
) {
|
) {
|
||||||
const where: Prisma.InvoiceWhereInput = {
|
const where: Prisma.InvoiceWhereInput = {
|
||||||
OR: [
|
OR: [
|
||||||
|
|
@ -71,6 +72,7 @@ export class InvoiceController extends Controller {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
payment: pay === undefined ? undefined : pay ? { isNot: null } : null,
|
||||||
quotationId,
|
quotationId,
|
||||||
quotation: {
|
quotation: {
|
||||||
registeredBranch: {
|
registeredBranch: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue