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() query: string = "",
|
||||
@Query() quotationId?: string,
|
||||
@Query() pay?: boolean,
|
||||
) {
|
||||
const where: Prisma.InvoiceWhereInput = {
|
||||
OR: [
|
||||
|
|
@ -71,6 +72,7 @@ export class InvoiceController extends Controller {
|
|||
},
|
||||
},
|
||||
],
|
||||
payment: pay === undefined ? undefined : pay ? { isNot: null } : null,
|
||||
quotationId,
|
||||
quotation: {
|
||||
registeredBranch: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue