feat: add credit note status filter
This commit is contained in:
parent
a3735abb78
commit
1cf861d492
1 changed files with 11 additions and 1 deletions
|
|
@ -101,8 +101,16 @@ export class CreditNoteController extends Controller {
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
@Query() quotationId?: string,
|
@Query() quotationId?: string,
|
||||||
|
@Query() creditNoteStatus?: CreditNoteStatus,
|
||||||
) {
|
) {
|
||||||
return await this.getCreditNoteListByCriteria(req, page, pageSize, query, quotationId);
|
return await this.getCreditNoteListByCriteria(
|
||||||
|
req,
|
||||||
|
page,
|
||||||
|
pageSize,
|
||||||
|
query,
|
||||||
|
quotationId,
|
||||||
|
creditNoteStatus,
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// NOTE: only when needed or else remove this and implement in getCreditNoteList
|
// NOTE: only when needed or else remove this and implement in getCreditNoteList
|
||||||
|
|
@ -114,6 +122,7 @@ export class CreditNoteController extends Controller {
|
||||||
@Query() pageSize: number = 30,
|
@Query() pageSize: number = 30,
|
||||||
@Query() query: string = "",
|
@Query() query: string = "",
|
||||||
@Query() quotationId?: string,
|
@Query() quotationId?: string,
|
||||||
|
@Query() creditNoteStatus?: CreditNoteStatus,
|
||||||
@Body() body?: {},
|
@Body() body?: {},
|
||||||
) {
|
) {
|
||||||
const where = {
|
const where = {
|
||||||
|
|
@ -159,6 +168,7 @@ export class CreditNoteController extends Controller {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
]),
|
]),
|
||||||
|
creditNoteStatus,
|
||||||
requestWork: {
|
requestWork: {
|
||||||
some: {
|
some: {
|
||||||
request: {
|
request: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue